Skip to content

Commit 334bd22

Browse files
committed
Merge pull request #3798
2d2d8fa Clarify the error message when unable to bind to port (paveljanik) 094eeff Bitcoin is running fine... (paveljanik)
2 parents c975e99 + 2d2d8fa commit 334bd22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/net.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,7 @@ bool BindListenPort(const CService &addrBind, string& strError)
16531653
{
16541654
int nErr = WSAGetLastError();
16551655
if (nErr == WSAEADDRINUSE)
1656-
strError = strprintf(_("Unable to bind to %s on this computer. Bitcoin is probably already running."), addrBind.ToString());
1656+
strError = strprintf(_("Unable to bind to %s on this computer. Bitcoin Core Daemon is probably already running."), addrBind.ToString());
16571657
else
16581658
strError = strprintf(_("Unable to bind to %s on this computer (bind returned error %d, %s)"), addrBind.ToString(), nErr, strerror(nErr));
16591659
LogPrintf("%s\n", strError);
@@ -1664,7 +1664,7 @@ bool BindListenPort(const CService &addrBind, string& strError)
16641664
// Listen for incoming connections
16651665
if (listen(hListenSocket, SOMAXCONN) == SOCKET_ERROR)
16661666
{
1667-
strError = strprintf("Error: Listening for incoming connections failed (listen returned error %d)", WSAGetLastError());
1667+
strError = strprintf(_("Error: Listening for incoming connections failed (listen returned error %d)"), WSAGetLastError());
16681668
LogPrintf("%s\n", strError);
16691669
return false;
16701670
}

0 commit comments

Comments
 (0)