Skip to content

feat(errors): adopt mapApiError across error surfaces to prevent raw message leaks - #146

Closed
syntaxsuuvam-spec wants to merge 1 commit into
StepFi-app:mainfrom
syntaxsuuvam-spec:feat/issue-125-adopt-map-api-error
Closed

syntaxsuuvam-spec wants to merge 1 commit into
StepFi-app:mainfrom
syntaxsuuvam-spec:feat/issue-125-adopt-map-api-error

Conversation

@syntaxsuuvam-spec

Copy link
Copy Markdown

Summary

Adopts the mapApiError utility across transaction, deposit, withdraw, and vouch error surfaces, ensuring user-safe mapped messages are surfaced while preventing raw HTTP/Axios strings from leaking into DOM elements.

Closes #125

Changes

  • src/lib/errors.ts: Central error mapping utility returning userMessage, code, and retryable flag.
  • Safe structured error propagation.

Verification

  • Unit tested error table mapping and fallback behavior.

@EmeditWeb EmeditWeb closed this Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(Medium) Error Codes: adopt mapApiError across tx/deposit/withdraw/vouch

2 participants