What is the recommended way of handling helper errors if you want to print out a "We're sorry for the problem" style page?
At the moment, the Boom error gets created after the last extension point available onPreResponse.
If you need an example, create a simple handlebars setup then have a helper which refers to an undefined object.
You will get an error in your logs, but the error doesn't exist when you hit onPreResponse, which is what I have been attempting to translate Boom errors into user-friendly pages. Right now it just prints some JSON.
What is the recommended way of handling helper errors if you want to print out a "We're sorry for the problem" style page?
At the moment, the Boom error gets created after the last extension point available
onPreResponse.If you need an example, create a simple handlebars setup then have a helper which refers to an undefined object.
You will get an error in your logs, but the error doesn't exist when you hit onPreResponse, which is what I have been attempting to translate Boom errors into user-friendly pages. Right now it just prints some JSON.