Browse Source

erl21 catch stacktrace

221V 1 year ago
parent
commit
344b85b080
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/active.erl

+ 2 - 3
src/active.erl

@@ -162,9 +162,8 @@ compile(App, Rest, Path) ->
         erlang:put(App, updated),
         erlang:put(App, updated),
         {M, F} = application:get_env(active, compile, {mad_compile, compile}),
         {M, F} = application:get_env(active, compile, {mad_compile, compile}),
         M:F(App, Path)
         M:F(App, Path)
-      catch E:R ->
-        io:format("~p", [erlang:get_stacktrace()]),
-        io:format("Catch: ~p:~p", [E, R])
+      catch E:R:S ->
+        io:format("Catch: ~p:~p~n~p~n", [E, R, S])
       end
       end
   end.
   end.