When an exception escalates to main, exit with an error code
This commit is contained in:
parent
a1c3079a68
commit
b4a609459b
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user