Skip to content

Commit da06979

Browse files
authored
Merge pull request #123 from rest-for-physics/lobis-quenching-warning
Give warning instead of error on quenching process when volume not matched
2 parents c0571cb + 5e93e50 commit da06979

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/TRestGeant4QuenchingProcess.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ void TRestGeant4QuenchingProcess::InitProcess() {
156156
}
157157

158158
if (physicalVolumes.empty()) {
159-
cerr << "TRestGeant4QuenchingProcess: No volume found matching expression " << userVolume << endl;
160-
exit(1);
159+
RESTWarning << "TRestGeant4QuenchingProcess: No volume found matching expression: " << userVolume
160+
<< RESTendl;
161161
}
162162

163163
for (const auto& physicalVolume : physicalVolumes) {

0 commit comments

Comments
 (0)