-
Notifications
You must be signed in to change notification settings - Fork 447
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
add custom error handling and error tracer #1580
base: add-guild-page
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…dd-custom-error-handling
)} | ||
{convergedError.recoverable && ( | ||
<Button | ||
onClick={resetBoundary} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't need the recovery functionality for now
return "There are issues with the provided data."; | ||
} | ||
|
||
public static fromZodError(error: ZodError): ValidationError { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove the zod-related stuff and just use this error for custom validation errors
No description provided.