Skip to content

Commit 42c5175

Browse files
committed
Set error at exit to the value of the first fatal error.
1 parent 043846f commit 42c5175

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CommonTools/Utils/src/findMethod.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ namespace reco {
104104
} else {
105105
oError = -1*casts;
106106
//is this a show stopper error?
107-
if(fatalErrorCondition(oError)) {
107+
if(fatalErrorCondition(oError) && err_fatal == 0) {
108108
err_fatal = oError;
109109
}
110110
}
@@ -114,6 +114,7 @@ namespace reco {
114114

115115
if (oks.empty() && err_fatal)
116116
{
117+
oError = err_fatal;
117118
return mem;
118119
}
119120

0 commit comments

Comments
 (0)