Wrap error string
This commit is contained in:
parent
47855b599d
commit
206e2b9737
|
@ -199,7 +199,8 @@ UniValue CallRPC(const string& strMethod, const UniValue& params)
|
||||||
// Try fall back to cookie-based authentication if no password is provided
|
// Try fall back to cookie-based authentication if no password is provided
|
||||||
if (!GetAuthCookie(&strRPCUserColonPass)) {
|
if (!GetAuthCookie(&strRPCUserColonPass)) {
|
||||||
throw runtime_error(strprintf(
|
throw runtime_error(strprintf(
|
||||||
_("Could not locate RPC credentials. No authentication cookie could be found, and no rpcpassword is set in the configuration file (%s)"),
|
_("Could not locate RPC credentials. No authentication cookie could be found,\n"
|
||||||
|
"and no rpcpassword is set in the configuration file (%s)."),
|
||||||
GetConfigFile().string().c_str()));
|
GetConfigFile().string().c_str()));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue