From: Wolfgang (Blub) Bumiller Date: Sat, 18 Aug 2012 10:45:51 +0000 (+0200) Subject: add the type of whatever is 'not a function' to that error message X-Git-Tag: 0.1-rc1~232 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7ecd9714b06f8114c6000fb762b27170ffa04e51;p=xonotic%2Fgmqcc.git add the type of whatever is 'not a function' to that error message --- diff --git a/parser.c b/parser.c index 89edf87..0c690c8 100644 --- 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; }