Improve some error messages

This commit is contained in:
Rangi42
2025-07-24 11:19:04 -04:00
parent ded4ef4072
commit c6d0e8de63
8 changed files with 16 additions and 9 deletions

View File

@@ -459,7 +459,7 @@ yy::parser::symbol_type yylex() {
scriptError(context, "Unknown keyword \"%s\"", ident.c_str());
return yylex();
} else {
scriptError(context, "Unexpected character '%s'", printChar(c));
scriptError(context, "Unexpected character %s", printChar(c));
// Keep reading characters until the EOL, to avoid reporting too many errors.
for (c = context.file.sgetc(); !isNewline(c); c = context.file.sgetc()) {
if (c == EOF) {