From 42c51752d5b69b7b59b2e00a8c4126ec34118ce1 Mon Sep 17 00:00:00 2001 From: alja Date: Thu, 19 Dec 2013 13:06:17 -0800 Subject: [PATCH] Set error at exit to the value of the first fatal error. --- CommonTools/Utils/src/findMethod.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CommonTools/Utils/src/findMethod.cc b/CommonTools/Utils/src/findMethod.cc index 7d98bbe93afa5..0b9b4a053de59 100755 --- a/CommonTools/Utils/src/findMethod.cc +++ b/CommonTools/Utils/src/findMethod.cc @@ -104,7 +104,7 @@ namespace reco { } else { oError = -1*casts; //is this a show stopper error? - if(fatalErrorCondition(oError)) { + if(fatalErrorCondition(oError) && err_fatal == 0) { err_fatal = oError; } } @@ -114,6 +114,7 @@ namespace reco { if (oks.empty() && err_fatal) { + oError = err_fatal; return mem; }