From d322e787fad8ab3830a9c309ff27b92ca9b5f09e Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Fri, 1 Mar 2024 17:37:36 -0800 Subject: [PATCH] (uxnasm) Print scope on error --- src/uxnasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uxnasm.c b/src/uxnasm.c index d761367..b642d04 100644 --- a/src/uxnasm.c +++ b/src/uxnasm.c @@ -79,7 +79,7 @@ error_top(const char *name, const char *msg) static int error(const char *name, const char *msg) { - fprintf(stderr, "%s: %s in %s:\n", name, msg, p.location); + fprintf(stderr, "%s: %s in @%s, %s.\n", name, msg, p.scope, p.location); return 0; }