diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-10-27 16:15:41 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-10-27 16:15:41 +0000 |
| commit | bc110af0eeef527f3343cee28052c853148e09cb (patch) | |
| tree | 53fca8068ab77919d2610673556b1f2f875176d9 /src/blockchain_utilities/blockchain_export.cpp | |
| parent | 9292c1e7cddbc65789d1a78a7db99111ce1980f2 (diff) | |
| download | monzero-core-bc110af0eeef527f3343cee28052c853148e09cb.tar.gz monzero-core-bc110af0eeef527f3343cee28052c853148e09cb.tar.xz monzero-core-bc110af0eeef527f3343cee28052c853148e09cb.zip | |
blockchain_utilities: properly exit on error
Replace boolean values and exceptions where appropriate
Diffstat (limited to 'src/blockchain_utilities/blockchain_export.cpp')
| -rw-r--r-- | src/blockchain_utilities/blockchain_export.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockchain_utilities/blockchain_export.cpp b/src/blockchain_utilities/blockchain_export.cpp index 4a96bad6b..1bdaa3d7e 100644 --- a/src/blockchain_utilities/blockchain_export.cpp +++ b/src/blockchain_utilities/blockchain_export.cpp @@ -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 |
