aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-27 10:56:54 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-27 10:56:54 +0000
commit02563bf4b9bb6addd19d600835ae0a2699cc5049 (patch)
tree7d4add1efe2aefd2e813255d7e82bb1dba1034f4 /src/simplewallet/simplewallet.cpp
parentblockchain_blackball: fix shift range for 32 bit archs (diff)
downloadmonero-02563bf4b9bb6addd19d600835ae0a2699cc5049.tar.xz
simplewallet: top level exception catcher to print nicer messages
Coverity 188408
Diffstat (limited to '')
-rw-r--r--src/simplewallet/simplewallet.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 302d2a999..7037d4972 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -8072,6 +8072,8 @@ void simple_wallet::commit_or_save(std::vector<tools::wallet2::pending_tx>& ptx_
//----------------------------------------------------------------------------------------------------
int main(int argc, char* argv[])
{
+ TRY_ENTRY();
+
#ifdef WIN32
// Activate UTF-8 support for Boost filesystem classes on Windows
std::locale::global(boost::locale::generator().generate(""));
@@ -8166,5 +8168,5 @@ int main(int argc, char* argv[])
w.deinit();
}
return 0;
- //CATCH_ENTRY_L0("main", 1);
+ CATCH_ENTRY_L0("main", 1);
}