From 4764981708e64dff1e5cbedbce2bcc9964a01911 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Mon, 10 Jan 2022 14:08:23 +0100 Subject: [PATCH] Update cols for warning and prev as well. --- src/compiler/diagnostics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/diagnostics.c b/src/compiler/diagnostics.c index 0088874c7..79fddd6ae 100644 --- a/src/compiler/diagnostics.c +++ b/src/compiler/diagnostics.c @@ -117,10 +117,10 @@ static void print_error(SourceLocation *location, const char *message, PrintType eprintf("(%s:%d:%d) Error: %s\n\n", file->full_path, location->row, location->col, message); break; case PRINT_TYPE_PREV: - eprintf("(%s:%d) %s\n\n", file->name, location->row, message); + eprintf("(%s:%d:%d) %s\n\n", file->name, location->row, location->col, message); break; case PRINT_TYPE_WARN: - eprintf("(%s:%d) Warning: %s\n\n", file->name, location->row, message); + eprintf("(%s:%d:%d) Warning: %s\n\n", file->name, location->row, location->col, message); break; default: UNREACHABLE