summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-11-20 10:11:24 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-11-20 10:12:52 +0100
commitb0126a2ea297c692214ec11302d2a7b3cf70edde (patch)
tree35b83815c8122db39eeeae08ea03ef71e5ec1990 /shell
parenta54e92737e3e2b642c1f8564d51d985c7433bd29 (diff)
do not use exitcode 0 on failure
Change-Id: I47ce1502e8ffd58709a64a3ca520d59cb765bfaa
Diffstat (limited to 'shell')
-rw-r--r--shell/source/tools/lngconvex/lngconvex.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/source/tools/lngconvex/lngconvex.cxx b/shell/source/tools/lngconvex/lngconvex.cxx
index 942ae75ea154..1e4f1c20e03d 100644
--- a/shell/source/tools/lngconvex/lngconvex.cxx
+++ b/shell/source/tools/lngconvex/lngconvex.cxx
@@ -590,15 +590,18 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
catch(const std::ios::failure& ex)
{
std::cout << ex.what() << std::endl;
+ return 1;
}
catch(const std::exception& ex)
{
std::cout << ex.what() << std::endl;
ShowUsage();
+ return 1;
}
catch(...)
{
std::cout << "Unexpected error..." << std::endl;
+ return 1;
}
return 0;
}