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

Generated onPreResponse hook blows up on a 404 route #70

Open
Kev opened this Issue Nov 5, 2014 · 0 comments

Comments

Projects
None yet
2 participants
@Kev

Kev commented Nov 5, 2014

I tried to add new API endpoints in hapi, and missed the one I needed. My Ampersand then hit the missing endpoint, hapi generated a 404 response, but the hook tries to blindly dereference request.response.state, which causes an error. While this is clearly he result of a PEBKAC, it'd be more useful if the generated code didn't crash, letting the 404 through so the twit in the chair can more easily see the 404 and diagnose the problem.

@bear bear added the bug label Nov 6, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment