aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index d365fc4b..4001d4b8 100644
--- a/parse.c
+++ b/parse.c
@@ -1005,7 +1005,7 @@ PARSER(parse_reduction) {
ast_t *fallback = NULL;
if (match_word(&pos, "else")) {
- expect_str(ctx, start, &pos, ":", "I expected a ':' here");
+ expect_str(ctx, pos-strlen("else"), &pos, ":", "I expected a ':' for this 'else'");
fallback = expect(ctx, pos-4, &pos, parse_expr, "I couldn't parse the expression after this 'else'");
}