Changeset View
Changeset View
Standalone View
Standalone View
src/httprpc.cpp
Show First 20 Lines • Show All 395 Lines • ▼ Show 20 Lines | try { | ||||
JSONErrorReply(req, JSONRPCError(RPC_PARSE_ERROR, e.what()), jreq.id); | JSONErrorReply(req, JSONRPCError(RPC_PARSE_ERROR, e.what()), jreq.id); | ||||
return false; | return false; | ||||
} | } | ||||
return true; | return true; | ||||
} | } | ||||
static bool InitRPCAuthentication() { | static bool InitRPCAuthentication() { | ||||
if (gArgs.GetArg("-rpcpassword", "") == "") { | if (gArgs.GetArg("-rpcpassword", "") == "") { | ||||
LogPrintf("No rpcpassword set - using random cookie authentication.\n"); | LogPrintf("Using random cookie authentication.\n"); | ||||
if (!GenerateAuthCookie(&strRPCUserColonPass)) { | if (!GenerateAuthCookie(&strRPCUserColonPass)) { | ||||
// Same message as AbortNode. | // Same message as AbortNode. | ||||
uiInterface.ThreadSafeMessageBox( | uiInterface.ThreadSafeMessageBox( | ||||
_("Error: A fatal internal error occurred, see debug.log for " | _("Error: A fatal internal error occurred, see debug.log for " | ||||
"details"), | "details"), | ||||
"", CClientUIInterface::MSG_ERROR); | "", CClientUIInterface::MSG_ERROR); | ||||
return false; | return false; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |