Skip to content

Commit

Permalink
wallet: report exact reason for open_wallet failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
0xFFFC0000 committed Dec 13, 2024
1 parent 58a1d54 commit 20a1c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/wallet_rpc_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3466,7 +3466,7 @@ namespace tools
if (!wal)
{
er.code = WALLET_RPC_ERROR_CODE_UNKNOWN_ERROR;
er.message = "Failed to open wallet";
er.message = "Failed to open wallet : " + (!er.message.empty() ? er.message : "Unknown.");
return false;
}

Expand Down

0 comments on commit 20a1c00

Please sign in to comment.