commit d322e787fad8ab3830a9c309ff27b92ca9b5f09e
parent a5ff070dd0ec272bb2c4873c3a213960d66ced46
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date: Fri, 1 Mar 2024 17:37:36 -0800
(uxnasm) Print scope on error
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;
}