Skip to content

Return which token has not been found #3241

@Amatewasu

Description

@Amatewasu

When using the patcher feature, it would be nice to know which token has not been found to help us troubleshoot the issue.

Could be done by changing:

throw new Error("Token not found");

into

throw new Error(`Token ${token} not found`)

or

class TokenNotFoundError extends Error {
  constructor(message: string) {
    super(message);
    this.name = "TokenNotFoundError ";
  }
}
throw new TokenNotFoundError (`Token ${token} not found`)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions