better error message

This commit is contained in:
ceriel 1988-01-28 16:54:33 +00:00
parent 99611d287b
commit a22ab5c7b7

View file

@ -447,7 +447,7 @@ WalkStat(nd, exit_label)
case '(': case '(':
if (ChkCall(nd)) { if (ChkCall(nd)) {
if (nd->nd_type != 0) { if (nd->nd_type != 0) {
node_error(nd, "procedure call expected"); node_error(nd, "illegal function call");
break; break;
} }
CodeCall(nd); CodeCall(nd);