-
Notifications
You must be signed in to change notification settings - Fork 162
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
Handle potential errors in footer parsing #836
Comments
Hi James, I would like to work on this issue. I think that something like this would do the job. let cleanDescription;
try
{
const rawDescription = marked(metadata.description);
cleanDescription = sanitizer(rawDescription, sanitizerConfig);
} catch (error) {
console.error('Error parsing footer description'+error)
cleanDescription = (<h1>Something went wrong.</h1>);
} Regards, Andres |
Yes, I think this would be good 👍 Let's change |
Hi James, I modified the message. I made a branch and the modified code is. |
Great! Can you make a PR into this repo so I can test & merge? |
Hi James, the PR is already merged. As part of this issue would you like me to implement Error Boundaries in other key components? Andres |
For reference this is the PR URL: |
Closed by #1058 |
I've implemented Error Boundaries in a few places, but not consistently and not that well. Since we do a lot of data processing on the client, we are prone to errors which may bring the app (client) down. One such place is in the parsing of footer markdown. The output of this should be wrapped in an Error Boundary (or a simple try/catch used as we parse the data.
The text was updated successfully, but these errors were encountered: