Merge c985a34b9c into merged_master (Bitcoin PR bitcoin/bitcoin#26990)

This commit is contained in:
Tom Trevethan 2026-03-26 21:15:43 +00:00
commit 1e831942a6
4 changed files with 15 additions and 5 deletions

View file

@ -959,7 +959,8 @@ static void ParseError(const UniValue& error, std::string& strPrint, int& nRet)
strPrint += ("error message:\n" + err_msg.get_str());
}
if (err_code.isNum() && err_code.getInt<int>() == RPC_WALLET_NOT_SPECIFIED) {
strPrint += "\nTry adding \"-rpcwallet=<filename>\" option to elements-cli command line.";
strPrint += " Or for the CLI, specify the \"-rpcwallet=<walletname>\" option before the command";
strPrint += " (run \"elements-cli -h\" for help or \"elements-cli listwallets\" to see which wallets are currently loaded).";
}
} else {
strPrint = "error: " + error.write();