Kaydet (Commit) cd31cfbf authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#441732 Uncaught exception

Change-Id: Icd11b81566fec7ce4855cd4e54ff3a3d9862d354
üst 1ff8fbba
......@@ -42,11 +42,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) {
if (!options.initOptions(argc, argv)) {
return EXIT_FAILURE;
}
} catch (IllegalArgument & e) {
std::cerr << "Illegal option " << e.m_message << '\n';
return EXIT_FAILURE;
}
try {
rtl::Reference< TypeManager > typeMgr(new TypeManager);
for (std::vector< rtl::OString >::const_iterator i(
options.getExtraInputFiles().begin());
......@@ -90,6 +86,9 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) {
<< "ERROR: Bad format of <" << e.getUri() << ">, \""
<< e.getDetail() << "\"\n";
return EXIT_FAILURE;
} catch (IllegalArgument & e) {
std::cerr << "Illegal option " << e.m_message << '\n';
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
......
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