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
Remove ValidationError.annotate() from browser build #2261
Comments
With |
I’m confused. It’s clearly documented exactly where it should be. What’s the issue? |
Sorry, I (grossly) misunderstood this issue. Is there another of getting validation error details when using browser build? Should I supply my own annotate implementation? |
The annotate method is used mostly for displaying pretty errors in CLI tools. The error you get already includes all the information you need to handle it programmatically. Why do you need to annotate errors for console display in the browser? |
I don't. This is not something I do manually. try {
Joi.assert(…)
} catch(e) {
debugger
} Annotate is being called internally so the error I get is not the ValidationError instance but the error resulting from trying to call ValidationError.annotate. |
Got it! I'll get that fixed. |
No description provided.
The text was updated successfully, but these errors were encountered: