Commit a1027b1
CLI: decorate runtime errors with call-stack trace
format_error_with_trace was already implemented but the CLI was
discarding the trace by printing only the bare error string. Wire
it into the two top-level execute() sites so users see WHERE the
error fired, not just what.
## Before
Error: Index out of bounds: xs[99] (length 3). ...
## After
Error: Index out of bounds: xs[99] (length 3). ...
at inner (6:11)
at main (8:1)
This composes with all the other error improvements:
- name+length+hint at the point of failure (this commit's wiring
makes that visible)
- did-you-mean for undefined variables
- reserved-word and `if x = 5` hints from the parser
- cross-container hints (arr_get on dict → suggests dict_get)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent e9009ee commit a1027b1
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1079 | 1079 | | |
1080 | 1080 | | |
1081 | 1081 | | |
1082 | | - | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
1083 | 1088 | | |
1084 | 1089 | | |
1085 | 1090 | | |
| |||
1229 | 1234 | | |
1230 | 1235 | | |
1231 | 1236 | | |
1232 | | - | |
| 1237 | + | |
1233 | 1238 | | |
1234 | 1239 | | |
1235 | 1240 | | |
| |||
0 commit comments