Merge pull request #9614

20a1c00 wallet: report exact reason for open_wallet failure. (0xFFFC0000)
This commit is contained in:
luigi1111 2024-12-23 11:04:04 -05:00
commit 773cb9d831
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -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;
}