Skip to content

Commit 42e3364

Browse files
committed
Change Sonic to use ExternalFailure exception
Using the new exception type will make cmsRun return a more meaningful return value (which is what most code which launch cmsRun use to classify failures).
1 parent 92957fe commit 42e3364

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

HeterogeneousCore/SonicCore/src/SonicClientBase.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ void SonicClientBase::finish(bool success, std::exception_ptr eptr) {
5454
}
5555
//prepare an exception if exceeded
5656
else {
57-
cms::Exception ex("SonicCallFailed");
58-
ex << "call failed after max " << tries_ << " tries";
57+
edm::Exception ex(edm::errors::ExternalFailure);
58+
ex << "SonicCallFailed: call failed after max " << tries_ << " tries";
5959
eptr = make_exception_ptr(ex);
6060
}
6161
}

0 commit comments

Comments
 (0)