Commit 678fb76
feat(ovsm): improve error messages with specific details
Previously, tokenization and parse errors showed generic messages:
- ❌ "Failed to tokenize OVSM code"
- ❌ "Failed to parse OVSM code"
Now shows the actual underlying error:
- ✅ "Tokenization error: Syntax error at line 1, column 2: Unexpected character: #"
- ✅ "Parse error: Unexpected token: expected Expected THEN or '{' after IF condition, got Newline"
This makes debugging MUCH easier by showing exactly where and what went wrong!
Example:
```ovsm
IF $x > 5
$y = 10
```
Before: "Failed to parse OVSM code"
After: "Parse error: expected THEN or '{' after IF condition, got Newline"
🚀 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 8e88613 commit 678fb76
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
0 commit comments