Make error message more general for any chain
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user