Skip to content
Snippets Groups Projects
Commit a9c0f2a9 authored by Dinyar Rabady's avatar Dinyar Rabady
Browse files

Catch the right exception for config errors

This originally belonged to #15.
parent e47e6c62
No related branches found
No related tags found
2 merge requests!59CMSSW json file,!40Catch the right exception for config errors
Pipeline #4648906 passed
......@@ -205,10 +205,10 @@ if(argc < 2){
// utility::report_elapsed_time((tbb::tick_count::now() - mainStartTime).seconds());
return retval;
} catch (std::exception& e) {
} catch (std::invalid_argument& e) {
LOG(FATAL) << "Configuration invalid! Error text is \"" << e.what() << "\" Bailing out.";
return EX_CONFIG;
} catch(std::exception& e) {
} catch (std::exception& e) {
LOG(ERROR) << "Error occurred. error text is: \"" << e.what() << "\"";
return 1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment