We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e986346 commit 2b68e21Copy full SHA for 2b68e21
CondTools/Ecal/src/EcalTPGOddWeightIdMapHandler.cc
@@ -247,8 +247,7 @@ void popcon::EcalTPGOddWeightIdMapHandler::readtxtFile() {
247
std::ifstream fInput;
248
fInput.open(m_file_name);
249
if (!fInput.is_open()) {
250
- edm::LogVerbatim("EcalTPGOddWeightIdMapHandler") << "ERROR : cannot open file " << m_file_name;
251
- exit(1);
+ throw cms::Exception("FileReadError") << "ERROR : cannot open file " << m_file_name;
252
}
253
unsigned int wloc[5];
254
EcalTPGWeights w;
0 commit comments