Skip to content

Commit 630c063

Browse files
committed
Tweak version bounds message for else after catch
1 parent c29a0a4 commit 630c063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2123,7 +2123,7 @@ function parse_try(ps)
21232123
emit(ps, else_mark, K"error", error="Expected `catch` before `else`")
21242124
end
21252125
#v1.7: try catch ; else end ==> (try (block) false (block) (error (block)) false)
2126-
min_supported_version(v"1.8", ps, else_mark, "`else` after `try`")
2126+
min_supported_version(v"1.8", ps, else_mark, "`else` after `catch`")
21272127
else
21282128
bump_invisible(ps, K"false")
21292129
end

0 commit comments

Comments
 (0)