Kaydet (Commit) b0126a2e authored tarafından Luboš Luňák's avatar Luboš Luňák

do not use exitcode 0 on failure

Change-Id: I47ce1502e8ffd58709a64a3ca520d59cb765bfaa
üst a54e9273
...@@ -590,15 +590,18 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) ...@@ -590,15 +590,18 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
catch(const std::ios::failure& ex) catch(const std::ios::failure& ex)
{ {
std::cout << ex.what() << std::endl; std::cout << ex.what() << std::endl;
return 1;
} }
catch(const std::exception& ex) catch(const std::exception& ex)
{ {
std::cout << ex.what() << std::endl; std::cout << ex.what() << std::endl;
ShowUsage(); ShowUsage();
return 1;
} }
catch(...) catch(...)
{ {
std::cout << "Unexpected error..." << std::endl; std::cout << "Unexpected error..." << std::endl;
return 1;
} }
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment