File 0659-ct-Don-t-hide-error-reasons-from-user.patch of Package erlang
From 53c163ec91d0cd6f914a1a52677250ed2162d13b Mon Sep 17 00:00:00 2001
From: Anton Thomasson <anton.thomasson@ericsson.com>
Date: Thu, 12 Dec 2019 17:00:48 +0100
Subject: [PATCH] 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.
---
lib/common_test/src/ct_framework.erl | 4 ----
1 file changed, 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,
--
2.16.4