[erlang-questions] Run-time error messages

Björn Gustavsson bjorn@REDACTED
Mon Oct 3 08:38:09 CEST 2016

On Mon, Oct 3, 2016 at 2:49 AM, Richard A. O'Keefe <ok@REDACTED> wrote:
> A student just asked me for help finding a bug in his
> Erlang code.  This was the line responsible:
> ChosenTopic = lists:nth(
>   rand:uniform(length(AvailableTopics-1)), AvailableTopics),
>                       ^^^^^^^^^^^^^^^^^

Can you post a complete code example that I compile
and see if there is a bug in line number handling that
should be fixed?

Normally the line number should point to the
line where the exception happens.


Björn Gustavsson, Erlang/OTP, Ericsson AB

More information about the erlang-questions mailing list