Skip to content

Commit 2b68e21

Browse files
committed
Replaced one extra exit statement with a cms exception
1 parent e986346 commit 2b68e21

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CondTools/Ecal/src/EcalTPGOddWeightIdMapHandler.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,7 @@ void popcon::EcalTPGOddWeightIdMapHandler::readtxtFile() {
247247
std::ifstream fInput;
248248
fInput.open(m_file_name);
249249
if (!fInput.is_open()) {
250-
edm::LogVerbatim("EcalTPGOddWeightIdMapHandler") << "ERROR : cannot open file " << m_file_name;
251-
exit(1);
250+
throw cms::Exception("FileReadError") << "ERROR : cannot open file " << m_file_name;
252251
}
253252
unsigned int wloc[5];
254253
EcalTPGWeights w;

0 commit comments

Comments
 (0)