Skip to content

Frontend Error Handling Pattern #194

@Huygon764

Description

@Huygon764

Problem: Catch blocks display raw error messages (contract reverts, network errors) directly in toast notifications. Users see unreadable messages like "execution reverted: Tx failed".

Expectation: Create formatErrorMessage(error, fallback) utility that maps known errors to user-friendly messages and logs raw errors to console only. Apply consistently across all frontend catch blocks.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions