clean up a follow on error for calling an undefined function

This commit is contained in:
Bill Currie 2002-08-13 21:16:42 +00:00
parent aa76f81073
commit 3971786ee1

View file

@ -1597,6 +1597,9 @@ function_expr (expr_t *e1, expr_t *e2)
t1 = extract_type (e1);
if (e1->type == ex_error)
return e1;
if (t1 != ev_func) {
if (e1->type == ex_def)
return error (e1, "Called object \"%s\" is not a function",