Skip to content
Snippets Groups Projects
Commit f2893af4 authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

updated to rida to gracefully exit on throwing an unexpected exception

parent e3a62ced
No related branches found
No related tags found
No related merge requests found
......@@ -628,10 +628,17 @@ int main(int argc, char* argv[])
}
CreateFunctions_t create_funcs(input_pgm,output_annot,verbose);
create_funcs.calculate();
create_funcs.writeAnnotations();
try
{
CreateFunctions_t create_funcs(input_pgm,output_annot,verbose);
create_funcs.calculate();
create_funcs.writeAnnotations();
}
catch(const exception& e)
{
cout << "Cannot run rida on input file: " << input_pgm << endl;
cout << e.what() << endl;
return 2;
}
return 0;
}
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