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 | 86286ebe61c5bd0f88689d5d6155f09cc4879821 (patch) | |
| tree | 87e33c2be0f4c0ad0e3245195d7525dcfced05b6 /internal/repl | |
| parent | 6553891403e221134028dbdec3ce3101bf97cdfc (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
