aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_framework.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2013-04-18 10:50:55 +0200
committerSiri Hansen <[email protected]>2013-04-18 10:50:55 +0200
commit3048124f81e74f9729f0c3e045ca8dd6cc86f3ab (patch)
tree471e7757c1d7c655700fa7eb34735b6e5f24332f /lib/common_test/src/ct_framework.erl
parent70c15bf9483944f3eedea0ad1156a6117421cd19 (diff)
parent96ecf847dbbf279f1005c98d513eae489ffac242 (diff)
downloadotp-3048124f81e74f9729f0c3e045ca8dd6cc86f3ab.tar.gz
otp-3048124f81e74f9729f0c3e045ca8dd6cc86f3ab.tar.bz2
otp-3048124f81e74f9729f0c3e045ca8dd6cc86f3ab.zip
Merge branch 'maint'
Diffstat (limited to 'lib/common_test/src/ct_framework.erl')
-rw-r--r--lib/common_test/src/ct_framework.erl11
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}] ->