From f71f8124c3ffb8df6d83f6fd00201cb11aa0f239 Mon Sep 17 00:00:00 2001 From: Duke Date: Wed, 21 Feb 2024 10:54:51 -0500 Subject: [PATCH] Give a better error message which does not mention a specific coin name, so as to not confuse DragonX/etc users --- src/init.cpp | 4 ++-- src/net.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/init.cpp b/src/init.cpp index 977dc7323..c2d941d4e 100644 --- a/src/init.cpp +++ b/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 diff --git a/src/net.cpp b/src/net.cpp index 7713da52e..334c44cf0 100644 --- a/src/net.cpp +++ b/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);