blockchain_utilities: properly exit on error

Replace boolean values and exceptions where appropriate
This commit is contained in:
moneromooo-monero
2015-10-27 16:15:41 +00:00
parent 9292c1e7cd
commit bc110af0ee
2 changed files with 7 additions and 7 deletions

View File

@@ -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