Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upGenerated onPreResponse hook blows up on a 404 route #70
Comments
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
Kev commentedNov 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.