summaryrefslogtreecommitdiff
path: root/unoidl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-11-06 09:46:39 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-11-06 12:15:56 +0000
commitdf35df21ce4868f551dac1f01a91db80db75137f (patch)
tree36942f877e8a86351fe66a3d21dd579b027dc06d /unoidl/source
parent95965034e3ce5e559f0338a65753aaa5dd02937e (diff)
coverity#1338259 Uncaught exception
Change-Id: I36e2194c304adae5b5c3377519eccc5ef78fd9ea
Diffstat (limited to 'unoidl/source')
-rw-r--r--unoidl/source/unoidl-write.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/unoidl/source/unoidl-write.cxx b/unoidl/source/unoidl-write.cxx
index 3ea09d3840a7..f400c6afa948 100644
--- a/unoidl/source/unoidl-write.cxx
+++ b/unoidl/source/unoidl-write.cxx
@@ -1104,7 +1104,13 @@ SAL_IMPLEMENT_MAIN() {
<< "Bad input <" << e1.getUri() << ">: " << e1.getDetail()
<< std::endl;
std::exit(EXIT_FAILURE);
+ } catch (std::exception & e1) {
+ std::cerr
+ << "Failure: " << e1.what()
+ << std::endl;
+ std::exit(EXIT_FAILURE);
}
+
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */