From 1175eb12b4f20bc4532c2e526f4a525241b5180b Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Thu, 31 Mar 2011 11:09:51 +0200 Subject: Fix ct_framework to not crash when error_notification location is undefined. --- lib/common_test/src/ct_framework.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3