[erlang-questions] gen_server and the run-time errors

info <>
Wed Dec 8 17:51:13 CET 2010


Hi,
I have this ok !

init()->
process_flag(trap_exit,true),
handle_A(),
{ok,0}.
handle_A()->
Pid=proc_lib:spawn_link(...),
ets:insert(?MODULE,{Pid,0}),  <<<< this line provokes the shutdown
ok.

I know my error but I would like to see on the screen the "Reason" and not "shutdown": I lost information somewhere !

J-Ph. Constantin
ITS3 Genève
www.its3.ch


More information about the erlang-questions mailing list