Skip to content

Commit a93530a

Browse files
committed
server output: avoid including the 'error' word when there is none
1 parent a8a8d73 commit a93530a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/server/output.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,10 @@ GString *output_read_message(OutputModule * output)
269269
}
270270
/* terminate if we reached the last line (without '-' after numcode) */
271271
} while (!errors && !((strlen(line) < 4) || (line[3] == ' ')));
272-
MSG(5, "Finished reading message, with errors %d", errors);
272+
if (errors)
273+
MSG(5, "Finished reading message, with errors");
274+
else
275+
MSG(5, "Finished reading message");
273276

274277
if (line != NULL)
275278
free(line);

0 commit comments

Comments
 (0)