- irc.c:irc_send(): improved error reporting if send() fails
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Thu, 1 Jan 2015 13:45:57 +0000 (13:45 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Thu, 1 Jan 2015 13:45:57 +0000 (13:45 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@5252 82007160-df01-0410-b94d-b575c5fd34c7

src/irc.c

index 9d0f3cfc396fc9989c6a606f51ea0f8d757e5d27..04e32ba7833c79cd2392443696c0c63e787ec343 100644 (file)
--- a/src/irc.c
+++ b/src/irc.c
@@ -277,7 +277,7 @@ irc_send(const char *data, ...)
   if (send(IRC_FD, buf, len, 0) == -1)
   {
     /* Return of -1 indicates error sending data; we reconnect. */
-    log_printf("IRC -> Error sending data to server\n");
+    log_printf("IRC -> Error sending data to server: %s", strerror(errno));
     irc_reconnect();
   }
 }