MetaMask / MetaMask/snaps

Standardize snap-related errors

Open
#210 0 comments 0 reactions 0 assignees View on GitHub
type-enhancement
Dominant language
TypeScript
Stars
853
Forks
662
Avg merge
2d 8h
Merged PRs (30d)
8

Description

We should standardize all common snap-related errors. This means that we should choose error codes and standard messages, and probably add them to our [`eth-rpc-errors`](https://github.com/MetaMask/eth-rpc-errors) library. If we can reuse existing error standards, we should do so.

Before we start an implementation, a proposal should be drafted (in written form, anywhere) of the different kinds of errors that exist and what error codes and messages they should have.

Contributor guide

Open the contributing guide

Research direction

Start by cataloging the common snap-related errors and reviewing the eth-rpc-errors library for reusable standards. Done means producing a written proposal that defines the error categories, codes, and standard messages before implementation begins.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.