-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Catch Handlebars render errors #147
Conversation
} | ||
this.send(html) | ||
} catch (e) { | ||
this.send(e) |
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.
this is going to return a JSON, there is not a handlebar feature like a 500 html service page?
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.
AFAIK there isn't. The error can be caught in an error handler and you can display a 500 page there.
Co-Authored-By: Manuel Spigolon <behemoth89@gmail.com>
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.
lgtm
@Eomm would you mind to push out a release? |
Errors inside the
readFile
callbacks (such as from a Handlebars helper) crashed the app.Checklist
npm run test
andnpm run benchmark