Make error message more general for any chain

This commit is contained in:
Duke
2025-10-26 09:11:07 -04:00
parent 9177a51b6d
commit 5ecd7629ec

View File

@@ -704,7 +704,7 @@ UniValue dumpwallet_impl(const UniValue& params, bool fHelp, bool fDumpZKeys)
throw JSONRPCError(RPC_INTERNAL_ERROR, e.what()); throw JSONRPCError(RPC_INTERNAL_ERROR, e.what());
} }
if (exportdir.empty()) { if (exportdir.empty()) {
throw JSONRPCError(RPC_WALLET_ERROR, "Cannot export wallet until the hushd -exportdir option has been set"); throw JSONRPCError(RPC_WALLET_ERROR, "Cannot export wallet until the -exportdir option has been set");
} }
std::string unclean = params[0].get_str(); std::string unclean = params[0].get_str();
std::string clean = SanitizeFilename(unclean); std::string clean = SanitizeFilename(unclean);