Permalink
Browse files

Add support for bad_return errors from application start

  • Loading branch information...
1 parent 807a847 commit d68f4d855fb923587a54672ba0ab93acba0474aa @Vagabond Vagabond committed Apr 1, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/error_logger_lager_h.erl
View
4 src/error_logger_lager_h.erl
@@ -194,6 +194,10 @@ format_reason({'function not exported', [{M, F, A, _Props},MFA|_]}) ->
" from ", format_mfa(MFA)];
format_reason({undef, [MFA|_]}) ->
["call to undefined function ", format_mfa(MFA)];
+format_reason({bad_return, {_MFA, {'EXIT', Reason}}}) ->
+ format_reason(Reason);
+format_reason({bad_return, {MFA, Val}}) ->
+ ["bad return value ", print_val(Val), " from ", format_mfa(MFA)];
format_reason({bad_return_value, Val}) ->
["bad return value: ", print_val(Val)];
format_reason({{bad_return_value, Val}, MFA}) ->

0 comments on commit d68f4d8

Please sign in to comment.