]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
a more verbose error
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 25 Nov 2012 14:58:10 +0000 (15:58 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 25 Nov 2012 14:58:10 +0000 (15:58 +0100)
parser.c

index 4e628d923594e19400ee39521b5e43e62d9d3e92..a38e41f8500feb5e9f0b53c2635f3242ae9f10d6 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -3682,7 +3682,7 @@ skipvar:
 
         if (parser->tok != '{') {
             if (parser->tok != '=') {
-                parseerror(parser, "missing semicolon or initializer");
+                parseerror(parser, "missing semicolon or initializer, got: `%s`", parser_tokval(parser));
                 break;
             }