mirror of
https://github.com/monero-project/monero.git
synced 2026-01-22 12:24:30 +01:00
wallet: report exact reason for open_wallet failure.
This commit is contained in:
@@ -3625,7 +3625,7 @@ namespace tools
|
|||||||
if (!wal)
|
if (!wal)
|
||||||
{
|
{
|
||||||
er.code = WALLET_RPC_ERROR_CODE_UNKNOWN_ERROR;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user