From 7ecd9714b06f8114c6000fb762b27170ffa04e51 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sat, 18 Aug 2012 12:45:51 +0200 Subject: [PATCH] add the type of whatever is 'not a function' to that error message --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2