diff options
author | Siri Hansen <[email protected]> | 2013-04-18 10:48:59 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2013-04-18 10:48:59 +0200 |
commit | 96ecf847dbbf279f1005c98d513eae489ffac242 (patch) | |
tree | 873c3048feef569be78316bee1a1b264c69009f3 /lib/common_test/src/ct_framework.erl | |
parent | 84b973a7e86fc38015e7860863ec6ca5fae9c412 (diff) | |
parent | c954cca3a5aaada476c12dc80a4b0adcd3eb3a0d (diff) | |
download | otp-96ecf847dbbf279f1005c98d513eae489ffac242.tar.gz otp-96ecf847dbbf279f1005c98d513eae489ffac242.tar.bz2 otp-96ecf847dbbf279f1005c98d513eae489ffac242.zip |
Merge branch 'siri/ct/error-printout-link/OTP-11044' into maint
* siri/ct/error-printout-link/OTP-11044:
[common_test] Add link from red error notification to full error description
[common_test] Use max importance when logging errors
Diffstat (limited to 'lib/common_test/src/ct_framework.erl')
-rw-r--r-- | lib/common_test/src/ct_framework.erl | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/common_test/src/ct_framework.erl b/lib/common_test/src/ct_framework.erl index b92fe1555f..276f902b05 100644 --- a/lib/common_test/src/ct_framework.erl +++ b/lib/common_test/src/ct_framework.erl @@ -32,6 +32,7 @@ -export([error_in_suite/1, init_per_suite/1, end_per_suite/1, init_per_group/2, end_per_group/2]). +-include("ct.hrl"). -include("ct_event.hrl"). -include("ct_util.hrl"). @@ -806,8 +807,14 @@ error_notification(Mod,Func,_Args,{Error,Loc}) -> "- - - - - - - - - -~n", io:format(user, lists:concat([Div,ErrFormat,Div,"~n"]), ErrArgs), - ct_logs:tc_log(ct_error_notify, "CT Error Notification", - ErrFormat, ErrArgs) + Link = + "\n\n<a href=\"#end\">" + "Full error description and stacktrace" + "</a>", + ct_logs:tc_log(ct_error_notify, + ?MAX_IMPORTANCE, + "CT Error Notification", + ErrFormat++Link, ErrArgs) end, case Loc of [{?MODULE,error_in_suite}] -> |