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 Nov 19, 2024
1 parent 893916a commit 33f6fa5
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 @@ -3625,7 +3625,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 33f6fa5

Please sign in to comment.