summaryrefslogtreecommitdiff
path: root/codemaker
diff options
context:
space:
mode:
Diffstat (limited to 'codemaker')
-rw-r--r--codemaker/source/cppumaker/cppumaker.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/codemaker/source/cppumaker/cppumaker.cxx b/codemaker/source/cppumaker/cppumaker.cxx
index 2a698f415f03..ef21d172a98a 100644
--- a/codemaker/source/cppumaker/cppumaker.cxx
+++ b/codemaker/source/cppumaker/cppumaker.cxx
@@ -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< OString >::const_iterator i(
options.getExtraInputFiles().begin());
@@ -102,6 +98,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;
}