wallet: report exact reason for open_wallet failure.

This commit is contained in:
0xFFFC0000
2024-12-15 19:51:50 +03:00
committed by wowario
parent f603c70a5f
commit 7d01e5fa30
+1 -1
View File
@@ -3465,7 +3465,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;
}