aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-27 15:37:44 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-27 17:29:12 +0000
commit1b0afeeb1ce987f368a2d14c950b628871a5eed3 (patch)
tree23aa27e1f3377968aef0fa4d56db0e9b98bc8c6a /src/wallet/wallet_rpc_server.cpp
parentunit_tests: catch unhandled exceptions (diff)
downloadmonero-1b0afeeb1ce987f368a2d14c950b628871a5eed3.tar.xz
wallet_rpc_server: exit cleanly on unhandled exceptions
Coverity 161868
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet_rpc_server.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index e6eb64d12..b30a80359 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -3457,6 +3457,8 @@ public:
std::string const t_executor::NAME = "Wallet RPC Daemon";
int main(int argc, char** argv) {
+ TRY_ENTRY();
+
namespace po = boost::program_options;
const auto arg_wallet_file = wallet_args::arg_wallet_file();
@@ -3500,4 +3502,5 @@ int main(int argc, char** argv) {
}
return daemonizer::daemonize(argc, const_cast<const char**>(argv), t_executor{}, *vm) ? 0 : 1;
+ CATCH_ENTRY_L0("main", 1);
}