mirror of
https://github.com/apple/pkl.git
synced 2026-06-11 08:12:50 +02:00
Improve error message when parsing truncated let expressions (#1639)
This previously yielded ``` Unexpected token `}`. Expected `}`. ``` Pretty confusing, no? Now it's just ``` Unexpected token `}`. ``` Resolves #1638
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
foo {
|
||||
bar = let (qux = 1)
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
–– Pkl Error ––
|
||||
Unexpected token `}`.
|
||||
|
||||
x | }
|
||||
^
|
||||
at letExpressionError3 (file:///$snippetsDir/input/errors/letExpressionError3.pkl)
|
||||
Reference in New Issue
Block a user