summaryrefslogtreecommitdiff
path: root/lib/common_test
diff options
context:
space:
mode:
authorAnton Thomasson <anton.thomasson@ericsson.com>2019-12-12 17:00:48 +0100
committerAnton Thomasson <anton.thomasson@ericsson.com>2019-12-12 17:07:46 +0100
commit53c163ec91d0cd6f914a1a52677250ed2162d13b (patch)
tree000d624fff9a8c876769d9e92af0b5c0ec585d44 /lib/common_test
parent50e6d1ccbec013ebe754fa4b31de2d180e8193ed (diff)
downloaderlang-53c163ec91d0cd6f914a1a52677250ed2162d13b.tar.gz
ct: Don't hide error reasons from user
Depending on what was given as an argument to erlang:error(), parts would not be printed. Specifically two-tuples of atom and something, would cause only the atom to be printed. Also remove now redundant clause of exempting {'ERROR', _} from this.
Diffstat (limited to 'lib/common_test')
-rw-r--r--lib/common_test/src/ct_framework.erl4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/common_test/src/ct_framework.erl b/lib/common_test/src/ct_framework.erl
index 367b5f5fdc..0806da9684 100644
--- a/lib/common_test/src/ct_framework.erl
+++ b/lib/common_test/src/ct_framework.erl
@@ -946,10 +946,6 @@ error_notification(Mod,Func,_Args,{Error,Loc}) ->
io_lib:format("{test_case_failed,~tp}", [Reason]);
Result -> Result
end;
- {'EXIT',_Reason} = EXIT ->
- io_lib:format("~tP", [EXIT,5]);
- {Spec,_Reason} when is_atom(Spec) ->
- io_lib:format("~tw", [Spec]);
Other ->
io_lib:format("~tP", [Other,5])
end,