aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities/blockchain_import.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-03-05 19:25:01 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-03-05 19:25:01 +0000
commit50ebf661509bddaeecf44a8a61eb835b0f3f6515 (patch)
tree9db0ae52c02bc70d858c41668fd82cfa77ada241 /src/blockchain_utilities/blockchain_import.cpp
parentblockchain_export: error out nicely on exceptions (diff)
downloadmonero-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.cpp4
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);
}