diff options
author | Lukas Larsson <[email protected]> | 2011-03-31 11:09:51 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2011-03-31 11:09:51 +0200 |
commit | 1175eb12b4f20bc4532c2e526f4a525241b5180b (patch) | |
tree | aa6ff01afbd3b076f4805c62cab4010ec94c121e /lib/common_test | |
parent | 7adef15b12d596ec43b1ed0c25a2657f9bad22cb (diff) | |
download | otp-1175eb12b4f20bc4532c2e526f4a525241b5180b.tar.gz otp-1175eb12b4f20bc4532c2e526f4a525241b5180b.tar.bz2 otp-1175eb12b4f20bc4532c2e526f4a525241b5180b.zip |
Fix ct_framework to not crash when error_notification location is undefined.
Diffstat (limited to 'lib/common_test')
-rw-r--r-- | lib/common_test/src/ct_framework.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common_test/src/ct_framework.erl b/lib/common_test/src/ct_framework.erl index 38a2aa53ac..f3c23868cc 100644 --- a/lib/common_test/src/ct_framework.erl +++ b/lib/common_test/src/ct_framework.erl @@ -633,7 +633,7 @@ error_notification(Mod,Func,_Args,{Error,Loc}) -> [{?MODULE,error_in_suite}] -> io:format(user, "Error in suite detected: ~s", [ErrStr]); - unknown -> + R when R == unknown; R == undefined -> io:format(user, "Error detected: ~s", [ErrStr]); %% if a function specified by all/0 does not exist, we |