mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 22:31:36 +00:00
add the type of whatever is 'not a function' to that error message
This commit is contained in:
parent
a74b26a9bc
commit
7ecd9714b0
1 changed files with 1 additions and 1 deletions
2
parser.c
2
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue