]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
add the type of whatever is 'not a function' to that error message
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 18 Aug 2012 10:45:51 +0000 (12:45 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 18 Aug 2012 10:45:51 +0000 (12:45 +0200)
parser.c

index 89edf87e1aa46c3c66e6621341e76808f69e5bec..0c690c8db7f8651b6fcfac43cdee2d4683e97271 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -921,7 +921,7 @@ static bool parser_close_call(parser_t *parser, shunt *sy)
     sy->out[fid] = syexp(call->expression.node.context, (ast_expression*)call);
 
     if (fun->expression.vtype != TYPE_FUNCTION) {
-        parseerror(parser, "not a function");
+        parseerror(parser, "not a function (%s)", type_name[fun->expression.vtype]);
         return false;
     }