summaryrefslogtreecommitdiff
path: root/codemaker
diff options
context:
space:
mode:
Diffstat (limited to 'codemaker')
-rw-r--r--codemaker/source/javamaker/javamaker.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/codemaker/source/javamaker/javamaker.cxx b/codemaker/source/javamaker/javamaker.cxx
index d74aafa31810..2e977633108c 100644
--- a/codemaker/source/javamaker/javamaker.cxx
+++ b/codemaker/source/javamaker/javamaker.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< 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;
}