Skip to content

Commit

Permalink
Set error at exit to the value of the first fatal error.
Browse files Browse the repository at this point in the history
  • Loading branch information
alja committed Dec 19, 2013
1 parent 043846f commit 42c5175
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CommonTools/Utils/src/findMethod.cc
Expand Up @@ -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;
}
}
Expand All @@ -114,6 +114,7 @@ namespace reco {

if (oks.empty() && err_fatal)
{
oError = err_fatal;
return mem;
}

Expand Down

0 comments on commit 42c5175

Please sign in to comment.