Lab 5.1 validation
I am using express and I have trouble passing "GET http://localhost:56700/boat/be97 responded with 500 response"
After I looked into validate.js:
I personally think there should be a "return" after line 316. If not then Error('not found') will be thrown after Error('unknown') and response eventually has status code 404 instead of 500.
After I put in "return" on line 317 I can indeed pass the test.
Is My reasoning correct? Or I am doing something wrong?