Improve wording in error message

This commit is contained in:
Pierre-Louis Bonicoli 2021-10-07 18:06:10 +02:00
parent e6547b8a48
commit 3d732651bc
Signed by: pilou
GPG Key ID: 06914C4A5EDAA6DD
1 changed files with 4 additions and 4 deletions

View File

@ -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)