Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to ignore specific error types #45

Closed
mwgamble opened this issue Oct 15, 2023 · 1 comment
Closed

Ability to ignore specific error types #45

mwgamble opened this issue Oct 15, 2023 · 1 comment

Comments

@mwgamble
Copy link

I'm creating a CLI app, and I'm using a package named promptui to display fancy prompts. If a user presses Ctrl+D or Ctrl+C while a prompt is active, this package returns specific error types to indicate this. These error types are statically declared, and I don't have any need to wrap these errors before passing them on.

It would be nice if there was a way to exclude specific errors, rather than any error from a given package.

@tomarrell
Copy link
Owner

This should be doable with the ignoreSigRegexps configuration option. You can specify the type in the signature to your desired level of specificity.

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

No branches or pull requests

2 participants