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

Absorb/endpoint submission form #111

Merged
merged 109 commits into from
Jul 10, 2024
Merged

Conversation

GeorgeGoodall
Copy link
Contributor

@GeorgeGoodall GeorgeGoodall commented Jul 8, 2024

Comment on lines +22 to +26
try {
res.status(err.status).render(err.template, { err })
} catch (e) {
res.status(err.status).render('errorPages/500', { err })
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

additional bit of error handling, as sometimes the err.template doesn't exist

@GeorgeGoodall GeorgeGoodall marked this pull request as ready for review July 10, 2024 09:27
@GeorgeGoodall GeorgeGoodall merged commit 22e8824 into main Jul 10, 2024
8 checks passed
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

Successfully merging this pull request may close these issues.

3 participants