diff --git a/src/asm/symbol.c b/src/asm/symbol.c index af9068f4..83452eb7 100644 --- a/src/asm/symbol.c +++ b/src/asm/symbol.c @@ -269,7 +269,7 @@ uint32_t sym_GetConstantValue(char const *s) if (sym_IsConstant(psym)) return getvaluefield(psym); - fatalerror("Expression must have a constant value"); + fatalerror("\"%s\" does not have a constant value", s); } yyerror("'%s' not defined", s); diff --git a/test/asm/bracketed-symbols.err b/test/asm/bracketed-symbols.err index 14a9a9e6..b6c44e82 100644 --- a/test/asm/bracketed-symbols.err +++ b/test/asm/bracketed-symbols.err @@ -1,4 +1,4 @@ ERROR: bracketed-symbols.asm(16): Print types are only allowed for numbers ERROR: bracketed-symbols.asm(20): - Expression must have a constant value + "Label" does not have a constant value