diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-03-05 19:25:01 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-03-05 19:25:01 +0000 |
commit | 50ebf661509bddaeecf44a8a61eb835b0f3f6515 (patch) | |
tree | 9db0ae52c02bc70d858c41668fd82cfa77ada241 /src/blockchain_utilities/blockchain_import.cpp | |
parent | blockchain_export: error out nicely on exceptions (diff) | |
download | monero-50ebf661509bddaeecf44a8a61eb835b0f3f6515.tar.xz |
blockchain_import: error out nicely on exceptions
Diffstat (limited to 'src/blockchain_utilities/blockchain_import.cpp')
-rw-r--r-- | src/blockchain_utilities/blockchain_import.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/blockchain_utilities/blockchain_import.cpp b/src/blockchain_utilities/blockchain_import.cpp index 83fd6fb20..66dd0b136 100644 --- a/src/blockchain_utilities/blockchain_import.cpp +++ b/src/blockchain_utilities/blockchain_import.cpp @@ -596,6 +596,8 @@ int import_from_file(FakeCore& simple_core, const std::string& import_file_path, int main(int argc, char* argv[]) { + TRY_ENTRY(); + epee::string_tools::set_module_name_and_folder(argv[0]); std::string default_db_type = "lmdb"; @@ -852,4 +854,6 @@ int main(int argc, char* argv[]) // calls delete on its BlockchainDB derived class' object, which closes its // files. return 0; + + CATCH_ENTRY("Import error", 1); } |