You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- start pr-codex -->
## PR-Codex overview
This PR focuses on enhancing error handling in the codebase by introducing a new `prettifyError` function and updating existing error formatting to use this function. It also adds a `prettifyTransactionError` function for transaction-specific errors.
### Detailed summary
- Added `prettifyError` function in `src/utils/error.ts` for improved error message formatting.
- Removed the old `formatError` function in `src/server/middleware/error.ts`.
- Updated error handling in `src/utils/transaction/queueTransaction.ts` to use `prettifyError`.
- Updated error handling in `src/server/routes/contract/write/write.ts` to use `prettifyError`.
- Updated error message formatting in `src/worker/tasks/sendTransactionWorker.ts` to use `prettifyError`.
- Introduced `prettifyTransactionError` function in `src/utils/error.ts` for transaction error handling.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
0 commit comments