diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-09-27 10:56:54 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-09-27 10:56:54 +0000 |
commit | 02563bf4b9bb6addd19d600835ae0a2699cc5049 (patch) | |
tree | 7d4add1efe2aefd2e813255d7e82bb1dba1034f4 | |
parent | blockchain_blackball: fix shift range for 32 bit archs (diff) | |
download | monero-02563bf4b9bb6addd19d600835ae0a2699cc5049.tar.xz |
simplewallet: top level exception catcher to print nicer messages
Coverity 188408
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 4 |
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); } |