Merge pull request #1859 from joakim-hove/use-exit

Return EXIT_FAILURE in main() instead of rethrow
This commit is contained in:
Kai Bao 2019-05-24 10:29:59 +02:00 committed by GitHub
commit 8ac85b892c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -296,7 +296,7 @@ int main(int argc, char** argv)
std::cerr << "Failed to create valid EclipseState object." << std::endl; std::cerr << "Failed to create valid EclipseState object." << std::endl;
std::cerr << "Exception caught: " << e.what() << std::endl; std::cerr << "Exception caught: " << e.what() << std::endl;
} }
throw; return EXIT_FAILURE;
} }
return EXIT_SUCCESS; return EXIT_SUCCESS;