aboutsummaryrefslogtreecommitdiffstats
path: root/lib/eunit/src/eunit_tty.erl
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2012-02-15 16:43:31 +0100
committerFredrik Gustafsson <[email protected]>2012-08-10 10:57:22 +0200
commitdab05b72fa5cfd383f1eac5525ac671a15c5cbf6 (patch)
treea2c74df5dea8c5db6613c8dedea31b20769ae27d /lib/eunit/src/eunit_tty.erl
parent975a3d513f3e112fa12b4de366ad54ac68b46b6e (diff)
downloadotp-dab05b72fa5cfd383f1eac5525ac671a15c5cbf6.tar.gz
otp-dab05b72fa5cfd383f1eac5525ac671a15c5cbf6.tar.bz2
otp-dab05b72fa5cfd383f1eac5525ac671a15c5cbf6.zip
improved layout of error messages - stack trace before error term
Diffstat (limited to 'lib/eunit/src/eunit_tty.erl')
-rw-r--r--lib/eunit/src/eunit_tty.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/eunit/src/eunit_tty.erl b/lib/eunit/src/eunit_tty.erl
index a8cec86ade..f21b2da3d3 100644
--- a/lib/eunit/src/eunit_tty.erl
+++ b/lib/eunit/src/eunit_tty.erl
@@ -213,7 +213,7 @@ print_test_end(Data) ->
print_test_error({error, Exception}, Data) ->
Output = proplists:get_value(output, Data),
- fwrite("*failed*\n::~s", [eunit_lib:format_exception(Exception)]),
+ fwrite("*failed*\n~s", [eunit_lib:format_exception(Exception)]),
case Output of
<<>> ->
fwrite("\n\n");
@@ -228,7 +228,7 @@ print_test_error({skipped, Reason}, _) ->
format_skipped({module_not_found, M}) ->
io_lib:fwrite("missing module: ~w", [M]);
format_skipped({no_such_function, {M,F,A}}) ->
- io_lib:fwrite("no such function: ~w:~w/~w", [M,F,A]).
+ io_lib:fwrite("no such function: ~w:~w/~w", [M,F,A]).
print_test_cancel(Reason) ->
fwrite(format_cancel(Reason)).