summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--codemaker/source/cppumaker/cppumaker.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/codemaker/source/cppumaker/cppumaker.cxx b/codemaker/source/cppumaker/cppumaker.cxx
index ef21d172a98a..c5ac5d81c553 100644
--- a/codemaker/source/cppumaker/cppumaker.cxx
+++ b/codemaker/source/cppumaker/cppumaker.cxx
@@ -98,10 +98,14 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) {
<< "ERROR: Bad format of <" << e.getUri() << ">, \""
<< e.getDetail() << "\"\n";
return EXIT_FAILURE;
- } catch (IllegalArgument & e) {
+ } catch (IllegalArgument& e) {
std::cerr << "Illegal option " << e.m_message << '\n';
return EXIT_FAILURE;
+ } catch (std::exception& e) {
+ std::cerr << "Failure " << e.what() << '\n';
+ return EXIT_FAILURE;
}
+
return EXIT_SUCCESS;
}