From: michael Date: Thu, 1 Jan 2015 13:45:57 +0000 (+0000) Subject: - irc.c:irc_send(): improved error reporting if send() fails X-Git-Tag: 1.0.0~21 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=08752fe9cd6a5efa7b7b0c692a6d2aa2662cbd4e;p=hopm.git - irc.c:irc_send(): improved error reporting if send() fails git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@5252 82007160-df01-0410-b94d-b575c5fd34c7 --- diff --git a/src/irc.c b/src/irc.c index 9d0f3cf..04e32ba 100644 --- 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(); } }