Skip to content

Commit 9f73622

Browse files
committed
Update emitted syntax error
1 parent 319a27b commit 9f73622

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/QoL Improvements/Syntax Errors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ The messages for syntax errors are enhanced. They include tailored messages and
55
if a < b and t == 5 return "Gottem" end
66
```
77
```diff title="Emitted Syntax Error"
8-
syntax error: file.pluto:1: expected 'then' to delimit condition.
8+
syntax error: file.pluto:1: unexpected symbol near 'return'
99
1 | if a < b and t == 5 return "Gottem" end
10-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ here: expected 'then' symbol.
10+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ here: expected 'then' or 'do' to open the block
1111
```
1212
### Example 2
1313
```pluto showLineNumbers title="Problematic Code"

0 commit comments

Comments
 (0)