From df3c616c84ff14eb3990d84b0a9f33797e2fe499 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 1 Aug 2016 23:41:27 +0200 Subject: scanner: don't break line on include error message For consistency with other error messages in this codebase, don't add a line break. Signed-off-by: Pablo Neira Ayuso --- src/scanner.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scanner.l b/src/scanner.l index cb2ea320..613c3c9e 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -644,7 +644,7 @@ int scanner_include_file(void *scanner, const char *filename, name = filename; } if (f == NULL) { - erec = error(loc, "Could not open file \"%s\": %s\n", + erec = error(loc, "Could not open file \"%s\": %s", filename, strerror(errno)); goto err; } -- cgit v1.2.3