public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee5ef73
)
Improve confusing error message when calling function procedures from a
author
David Given
<dg@cowlark.com>
Sun, 8 Jan 2017 10:25:57 +0000
(11:25 +0100)
committer
David Given
<dg@cowlark.com>
Sun, 8 Jan 2017 10:25:57 +0000
(11:25 +0100)
top-level statement.
Fixes: #30
lang/m2/comp/walk.c
patch
|
blob
|
history
diff --git
a/lang/m2/comp/walk.c
b/lang/m2/comp/walk.c
index
b513168
..
b36dbc8
100644
(file)
--- a/
lang/m2/comp/walk.c
+++ b/
lang/m2/comp/walk.c
@@
-676,7
+676,8
@@
label exit_label;
assert(nd == nd1);
if (nd->nd_type != 0)
{
- node_error(nd, "procedure call expected instead of function call");
+ node_error(nd, "only proper procedures can be called from top-level "
+ "statement; this is a function procedure");
break;
}
CodeCall(nd);