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:
1 parent
99cac1f886
commit
68f7d06eed
5 files changed
+12
-2
No files matched your search
+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