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

Option to return error without the prefix #143

Open
Yuripetusko opened this issue Sep 7, 2022 · 3 comments
Open

Option to return error without the prefix #143

Yuripetusko opened this issue Sep 7, 2022 · 3 comments

Comments

@Yuripetusko
Copy link

it would be great to be able to pass an options like {prefix: false} which would return error message without the prefix

@JasonWeise
Copy link

JasonWeise commented Jan 16, 2023

This 100%! I am using Remix with ErrorBoundary and would love my error message to not have "Invariant Failed:" as part of it without having to wrap in a try catch and throw my own error.. not very friendly to the end user.

@alexreardon
Copy link
Owner

This would be great

@victorlunam
Copy link

I think this function should have 2 approaches.

  1. Configure the prefix globally, be able to remove or set a new prefix.

  2. Set the prefix or remove at function call level.

  3. (optional) to have prefix scopes.

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

4 participants