Skip to content

Commit

Permalink
[Gen] Abort if sub-generator is not configured correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Volkel authored and sawenzel committed Jun 19, 2024
1 parent 13e3d51 commit bde774e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Generators/src/Generator.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,11 @@ Bool_t
}

if (mSubGeneratorsIdToDesc.empty() && mSubGeneratorId > -1) {
LOG(error) << "ReadEvent failed because no SubGenerator description given";
return kFALSE;
LOG(fatal) << "ReadEvent failed because no SubGenerator description given";
}

if (!mSubGeneratorsIdToDesc.empty() && mSubGeneratorId < 0) {
LOG(error) << "ReadEvent failed because SubGenerator description given but sub-generator not set";
return kFALSE;
LOG(fatal) << "ReadEvent failed because SubGenerator description given but sub-generator not set";
}

/** trigger event **/
Expand Down

0 comments on commit bde774e

Please sign in to comment.