mirror of
https://github.com/monero-project/monero.git
synced 2025-12-22 07:10:46 -08:00
blockchain_utilities: properly exit on error
Replace boolean values and exceptions where appropriate
This commit is contained in:
@@ -151,7 +151,7 @@ int main(int argc, char* argv[])
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
LOG_PRINT_L0("Error opening database: " << e.what());
|
||||
throw;
|
||||
return 1;
|
||||
}
|
||||
r = core_storage->init(db, opt_testnet);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user