Wrap error string

This commit is contained in:
Jack Grigg 2017-03-25 17:39:56 +13:00
parent 47855b599d
commit 206e2b9737
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
1 changed files with 2 additions and 1 deletions

View File

@ -199,7 +199,8 @@ UniValue CallRPC(const string& strMethod, const UniValue& params)
// Try fall back to cookie-based authentication if no password is provided
if (!GetAuthCookie(&strRPCUserColonPass)) {
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()));
}