diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-28 18:15:51 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-28 18:15:51 -0400 |
| commit | b3c697eb94543aca793ba560e1df99676b0c1d5e (patch) | |
| tree | 1c117bfd8112b26411b725907ba75f34aa530f75 /src | |
| parent | 312c0a22e76a66b2d905fa6fc8f1f233b85a672b (diff) | |
Better error message
Diffstat (limited to 'src')
| -rw-r--r-- | src/parse.c | 2 |
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); |
