mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-10 13:13:27 +01:00
wallet_rpc_server: guard against exceptions
CID 175305
This commit is contained in:
parent
4230876b31
commit
2e44d8f23c
@ -1887,7 +1887,15 @@ just_dir:
|
||||
wrpc.send_stop_signal();
|
||||
});
|
||||
LOG_PRINT_L0(tools::wallet_rpc_server::tr("Starting wallet rpc server"));
|
||||
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…
Reference in New Issue
Block a user