Use a messagebox to display the error when -server is provided without providing a rpc password
This commit is contained in:
parent
7cfbe1fee4
commit
5a60b66a9d
1 changed files with 9 additions and 8 deletions
|
@ -2362,16 +2362,17 @@ void ThreadRPCServer2(void* parg)
|
||||||
strWhatAmI = strprintf(_("To use the %s option"), "\"-server\"");
|
strWhatAmI = strprintf(_("To use the %s option"), "\"-server\"");
|
||||||
else if (mapArgs.count("-daemon"))
|
else if (mapArgs.count("-daemon"))
|
||||||
strWhatAmI = strprintf(_("To use the %s option"), "\"-daemon\"");
|
strWhatAmI = strprintf(_("To use the %s option"), "\"-daemon\"");
|
||||||
std::string strMessage = _("%s, you must set a rpcpassword in the configuration file:\n %s\n"
|
ThreadSafeMessageBox(strprintf(
|
||||||
"It is recommended you use the following random password:\n"
|
_("%s, you must set a rpcpassword in the configuration file:\n %s\n"
|
||||||
"rpcuser=bitcoinrpc\n"
|
"It is recommended you use the following random password:\n"
|
||||||
"rpcpassword=%s\n"
|
"rpcuser=bitcoinrpc\n"
|
||||||
"(you do not need to remember this password)\n"
|
"rpcpassword=%s\n"
|
||||||
"If the file does not exist, create it with owner-readable-only file permissions.\n");
|
"(you do not need to remember this password)\n"
|
||||||
fprintf(stderr, strMessage.c_str(),
|
"If the file does not exist, create it with owner-readable-only file permissions.\n"),
|
||||||
strWhatAmI.c_str(),
|
strWhatAmI.c_str(),
|
||||||
GetConfigFile().c_str(),
|
GetConfigFile().c_str(),
|
||||||
EncodeBase58(&rand_pwd[0],&rand_pwd[0]+32).c_str());
|
EncodeBase58(&rand_pwd[0],&rand_pwd[0]+32).c_str()),
|
||||||
|
_("Error"), wxOK | wxMODAL);
|
||||||
QueueShutdown();
|
QueueShutdown();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue