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

Catch the right exception for config errors

This originally belonged to #15.
parent 41a8779a
No related branches found
No related tags found
No related merge requests found
...@@ -214,7 +214,7 @@ int main(int argc, char *argv[]) { ...@@ -214,7 +214,7 @@ int main(int argc, char *argv[]) {
// utility::report_elapsed_time((tbb::tick_count::now() - // utility::report_elapsed_time((tbb::tick_count::now() -
// mainStartTime).seconds()); // mainStartTime).seconds());
return retval; return retval;
} catch (std::exception &e) { } catch (std::invalid_argument &e) {
LOG(FATAL) << "Configuration invalid! Error text is \"" << e.what() LOG(FATAL) << "Configuration invalid! Error text is \"" << e.what()
<< "\" Bailing out."; << "\" Bailing out.";
return EX_CONFIG; return EX_CONFIG;
......
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