Commit 1ccc4e38 authored by Julien Michel's avatar Julien Michel

COMP: Fixing coverity issue 1350186 (uncaught std::runtime_exception)

parent d772e21e
...@@ -83,6 +83,11 @@ int main(int argc, char * argv[]) ...@@ -83,6 +83,11 @@ int main(int argc, char * argv[])
std::cerr << "Could not open file " << argv[i] << " as an image or a vector, skipping." << std::endl; std::cerr << "Could not open file " << argv[i] << " as an image or a vector, skipping." << std::endl;
} }
} }
catch(std::runtime_error & err)
{
std::cerr<<"Runtime error: "<< err.what() <<std::endl;
return EXIT_FAILURE;
}
} }
std::cout<<"Press F1 for help"<<std::endl; std::cout<<"Press F1 for help"<<std::endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment