Skip to content

Commit

Permalink
Merge pull request #41085 from Dr15Jones/generatorException_13_0
Browse files Browse the repository at this point in the history
Have ExternalGeneratorFilter throw an generator specific exception [13_0]
  • Loading branch information
cmsbuild authored Mar 21, 2023
2 parents f4fd9f8 + e846684 commit 289a5bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions GeneratorInterface/Core/plugins/ExternalGeneratorFilter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ namespace externalgen {
if (not channel_.doTransition(
[&value, &iDeserializer]() { value = iDeserializer.deserialize(); }, iTrans, iTransitionID)) {
externalFailed_ = true;
throw cms::Exception("ExternalFailed") << "failed waiting for external process " << channel_.uniqueID()
<< ". Timed out after " << channel_.maxWaitInSeconds() << " seconds.";
throw edm::Exception(edm::errors::EventGenerationFailure)
<< "failed waiting for external process " << channel_.uniqueID() << ". Timed out after "
<< channel_.maxWaitInSeconds() << " seconds.";
}
return value;
}
Expand Down

0 comments on commit 289a5bb

Please sign in to comment.