wallet_rpc_server: guard against exceptions

CID 175305
release-v0.4.0.1
moneromooo-monero 7 years ago
parent 4230876b31
commit 2e44d8f23c
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -1887,7 +1887,15 @@ just_dir:
wrpc.send_stop_signal();
});
LOG_PRINT_L0(tools::wallet_rpc_server::tr("Starting wallet rpc server"));
wrpc.run();
try
{
wrpc.run();
}
catch (const std::exception &e)
{
LOG_ERROR(tools::wallet_rpc_server::tr("Failed to run wallet: ") << e.what());
return 1;
}
LOG_PRINT_L0(tools::wallet_rpc_server::tr("Stopped wallet rpc server"));
try
{

Loading…
Cancel
Save