[erlang-questions] {badarg, [{code_server, call, 2}, {error_handler, undefined_function, 3}]}

David Tucker dbtleonia@REDACTED
Tue Dec 9 06:42:43 CET 2008


Hi folks,

My simple program below gives an error on exit.  Any idea what is wrong?
Thanks.

Dave

---

$ cat inp.erl
-module(inp).
-compile(export_all).

start() ->
    spawn(fun() -> one_line() end).

one_line() ->
    case io:get_line("") of
     Str -> lib:nonl(Str)
    end.
$ erlc inp.erl
$ erl -noshell -s inp start -s init stop
{error_logger,{{2008,12,8},{21,39,50}},"~s~n",["Error in process <0.28.0>
with exit value:
{badarg,[{code_server,call,2},{error_handler,undefined_function,3}]}\n"]}
$ port info erlang | head -1
erlang R12B-5, lang/erlang (Variants: universal, smp, ssl, hipe, i386)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081208/35398f6a/attachment.htm>


More information about the erlang-questions mailing list