summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-17 11:55:30 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-17 11:55:30 +0000
commit681985c2cb121397fe54d3bcd0ab75d2d8ff04c3 (patch)
tree20c8006d3215c3fc5337fd34a6556ed55355dd79
parentf5bb9b429dcaf788aff420d8703d120f54101886 (diff)
Send strerror() on all socket error messages, this should help diagnose problems a lot easier
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10028 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_spanningtree/treesocket1.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/treesocket1.cpp b/src/modules/m_spanningtree/treesocket1.cpp
index c18bd3836..669b06c8d 100644
--- a/src/modules/m_spanningtree/treesocket1.cpp
+++ b/src/modules/m_spanningtree/treesocket1.cpp
@@ -155,13 +155,13 @@ void TreeSocket::OnError(BufferedSocketError e)
Utils->DoFailOver(MyLink);
break;
case I_ERR_SOCKET:
- Utils->Creator->RemoteMessage(NULL,"Connection failed: Could not create socket");
+ Utils->Creator->RemoteMessage(NULL,"Connection failed: Could not create socket (%s)", strerror(errno));
break;
case I_ERR_BIND:
- Utils->Creator->RemoteMessage(NULL,"Connection failed: Error binding socket to address or port");
+ Utils->Creator->RemoteMessage(NULL,"Connection failed: Error binding socket to address or port (%s)", strerror(errno));
break;
case I_ERR_WRITE:
- Utils->Creator->RemoteMessage(NULL,"Connection failed: I/O error on connection");
+ Utils->Creator->RemoteMessage(NULL,"Connection failed: I/O error on connection (%s)", strerror(errno));
break;
case I_ERR_NOMOREFDS:
Utils->Creator->RemoteMessage(NULL,"Connection failed: Operating system is out of file descriptors!");