diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-25 16:45:15 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-25 16:45:15 +0200 |
| commit | f2b5fc1329190dbe688cedb973154ecacdc08143 (patch) | |
| tree | 6c5c2c337bdbd2e8ee7b75565085e2990f6fcf41 /internal/repl | |
| parent | e56122a197c2af4c97b4e43bce9ad5746f520d40 (diff) | |
refactor: Add error wrapping with %w where appropriate
- Updated operator registration in rpn/operations.go:
- registerStandardOperator now wraps handler errors with operator name context
- registerCommandOperator now wraps handler errors with operator name context
- registerHyperOperator now wraps handler errors with operator name context
- Updated Parse() in calculator/calculator.go:
- Now wraps registry.parse() errors with context about the input
- Returns a more descriptive error when parsing fails
All tests pass and the binary builds and runs correctly.
Diffstat (limited to 'internal/repl')
0 files changed, 0 insertions, 0 deletions
