aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.c b/src/parse.c
index 59caabaa..78d9a2ed 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -2198,7 +2198,7 @@ PARSER(parse_func_def) {
spaces(&pos);
- if (!match(&pos, "(")) return NULL;
+ expect_str(ctx, start, &pos, "(", "I expected a parenthesis for this function's arguments");
arg_ast_t *args = parse_args(ctx, &pos);
spaces(&pos);