More fixes around Python exit codes

This commit is contained in:
Ian Rees
2016-03-27 13:01:04 +13:00
parent b86e14afff
commit bc71c6e64b
5 changed files with 23 additions and 20 deletions

View File

@@ -125,8 +125,8 @@ int main( int argc, char ** argv )
try {
Application::runApplication();
}
catch (const Base::SystemExitException&) {
exit(0);
catch (const Base::SystemExitException &e) {
exit(e.getExitCode());
}
catch (const Base::Exception& e) {
e.ReportException();