Browse Source

Give a better error message which does not mention a specific coin name, so as to not confuse DragonX/etc users

wolfssl_win
Duke 2 months ago
parent
commit
f71f8124c3
  1. 4
      src/init.cpp
  2. 2
      src/net.cpp

4
src/init.cpp

@ -1520,9 +1520,9 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
try {
static boost::interprocess::file_lock lock(pathLockFile.string().c_str());
if (!lock.try_lock())
return InitError(strprintf(_("Cannot obtain a lock on data directory %s. Hush is probably already running."), strDataDir));
return InitError(strprintf(_("Cannot obtain a lock on data directory %s. Full node is probably already running."), strDataDir));
} catch(const boost::interprocess::interprocess_exception& e) {
return InitError(strprintf(_("Cannot obtain a lock on data directory %s. Hush is probably already running.") + " %s.", strDataDir, e.what()));
return InitError(strprintf(_("Cannot obtain a lock on data directory %s. Full node is probably already running.") + " %s.", strDataDir, e.what()));
}
#ifndef _WIN32

2
src/net.cpp

@ -2166,7 +2166,7 @@ bool BindListenPort(const CService &addrBind, string& strError, bool fAllowliste
{
int nErr = WSAGetLastError();
if (nErr == WSAEADDRINUSE)
strError = strprintf(_("Unable to bind to %s on this computer. Hush is probably already running."), addrBind.ToString());
strError = strprintf(_("Unable to bind to %s on this computer. Full node is probably already running."), addrBind.ToString());
else
strError = strprintf(_("Unable to bind to %s on this computer (bind returned error %s)"), addrBind.ToString(), NetworkErrorString(nErr));
LogPrintf("%s\n", strError);

Loading…
Cancel
Save