[erlang-questions] Re: why is the error reason in a catch/try truncated?
Fernando Benavides
fernando.benavides@REDACTED
Tue Jan 18 16:05:58 CET 2011
Did you try using erlang:get_stacktrace()
Something along the lines of...
compile_file(File, Args, ParseTree) ->
case (catch compile_file0(File, Args, ParseTree)) of
{'EXIT', Why} ->
io:format("Compile file:~s aborted with:~p ~n
\tStack: ~p~n",[File, Why, erlang:get_stacktrace()]);
_ ->
ok
end
...may do the trick
On Tue, 2011-01-18 at 15:58 +0100, Steve Strong wrote:
> Nope, you're not the only one. Loosing exception information like that can be very frustrating.
>
More information about the erlang-questions
mailing list