From 3d732651bc2b957d3553f29bf7903a4bdc651b45 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bonicoli Date: Thu, 7 Oct 2021 18:06:10 +0200 Subject: [PATCH] Improve wording in error message --- src/irc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/irc.c b/src/irc.c index 5055a31..e9aa884 100644 --- a/src/irc.c +++ b/src/irc.c @@ -2481,8 +2481,8 @@ void bip_on_event(bip_t *bip, connection_t *conn) line = irc_line_new_from_string(line_s); if (!line) { - mylog(LOG_ERROR, "[%s] Error in protocol, closing...", - link_name(lc)); + mylog(LOG_ERROR, "[%s] Can not parse line. Link type: %d. " + "closing...", link_name(lc), TYPE(lc)); free(line_s); goto prot_err_lines; } @@ -2491,8 +2491,8 @@ void bip_on_event(bip_t *bip, connection_t *conn) irc_line_free(line); free(line_s); if (r == ERR_PROTOCOL) { - mylog(LOG_ERROR, "[%s] Error in protocol, closing...", - link_name(lc)); + mylog(LOG_ERROR, "[%s] Error in protocol. Link type: %d closing...", + link_name(lc), TYPE(lc)); goto prot_err_lines; } if (r == ERR_AUTH)