Skip to content

Commit

Permalink
Console logger now recognizes undef and badarg failure reasons and kn…
Browse files Browse the repository at this point in the history
…ows how to format them
  • Loading branch information
yrashk authored and Yurii Rashkovskii committed Apr 11, 2010
1 parent 0d9327c commit 7b900be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/epitest_console_logger.erl
Expand Up @@ -100,7 +100,11 @@ format_loc(dynamic) ->
format_reason(negative) ->
io_lib:format("This test should have failed", []);
format_reason({timetrapped, {X, Unit}}) ->
io_lib:format("timetrapped at ~w ~w",[X, Unit]);
io_lib:format("Timetrapped at ~w ~w",[X, Unit]);
format_reason({undef, {M, F, A}}) ->
io_lib:format("Undefined function ~w:~w/~w",[M,F,length(A)]);
format_reason({badarg, {M, F, A}}) ->
io_lib:format("Bad arguments ~p for ~w:~w/~w",[A,M,F,length(A)]);
format_reason(Reason) ->
io_lib:format("~p",[Reason]).

Expand Down

0 comments on commit 7b900be

Please sign in to comment.