aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-03-05 19:24:47 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-03-05 19:24:47 +0000
commit87d57d9c595b451eff6062a1189d07dbadece72e (patch)
treefe629a1e7edc74ab34dde4003679388d8e44730b /src/blockchain_utilities
parentMerge pull request #1844 (diff)
downloadmonero-87d57d9c595b451eff6062a1189d07dbadece72e.tar.xz
blockchain_export: error out nicely on exceptions
Diffstat (limited to 'src/blockchain_utilities')
-rw-r--r--src/blockchain_utilities/blockchain_export.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/blockchain_utilities/blockchain_export.cpp b/src/blockchain_utilities/blockchain_export.cpp
index 269710ee1..b45f36771 100644
--- a/src/blockchain_utilities/blockchain_export.cpp
+++ b/src/blockchain_utilities/blockchain_export.cpp
@@ -57,6 +57,8 @@ std::string join_set_strings(const std::unordered_set<std::string>& db_types_all
int main(int argc, char* argv[])
{
+ TRY_ENTRY();
+
epee::string_tools::set_module_name_and_folder(argv[0]);
std::string default_db_type = "lmdb";
@@ -226,4 +228,7 @@ int main(int argc, char* argv[])
}
CHECK_AND_ASSERT_MES(r, false, "Failed to export blockchain raw data");
LOG_PRINT_L0("Blockchain raw data exported OK");
+ return 0;
+
+ CATCH_ENTRY("Export error", 1);
}