Handle startup errors without calling abort()

This commit is contained in:
SChernykh
2022-05-23 09:37:11 +02:00
parent 1cf13e142a
commit b191962d32
3 changed files with 15 additions and 10 deletions

View File

@@ -133,7 +133,7 @@ Params::Params(int argc, char* argv[])
if (!ok) {
fprintf(stderr, "Unknown command line parameter %s\n\n", argv[i]);
p2pool_usage();
panic();
throw std::exception();
}
}