mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Print more useful error messages when binding a listening port fails
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1483 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
2
znc.cpp
2
znc.cpp
@@ -1430,7 +1430,7 @@ bool CZNC::DoRehash(CString& sError)
|
||||
CListener* pListener = new CListener(uPort, sBindHost, bSSL, bIPV6);
|
||||
|
||||
if (!pListener->Listen()) {
|
||||
sError = "Unable to bind";
|
||||
sError = "Unable to bind [" + CString(strerror(errno)) + "]";
|
||||
CUtils::PrintStatus(false, sError);
|
||||
delete pListener;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user