Skip to content

Handling errors in view rendering #96

@lostthetrail

Description

@lostthetrail

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions