Skip to content
Snippets Groups Projects

Catch the right exception for config errors

Merged Dinyar Rabady requested to merge fix/config_exception into master
All threads resolved!
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -205,10 +205,10 @@ if(argc < 2){
// utility::report_elapsed_time((tbb::tick_count::now() - mainStartTime).seconds());
return retval;
+1
} 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;
}
Loading