When an exception escalates to main, exit with an error code

This commit is contained in:
Sebastian Messmer 2016-09-24 09:52:19 +02:00
parent a1c3079a68
commit b4a609459b

View File

@ -18,5 +18,6 @@ int main(int argc, const char *argv[]) {
make_shared<CurlHttpClient>()).main(argc, argv);
} catch (const std::exception &e) {
cerr << "Error: " << e.what();
return EXIT_FAILURE;
}
}