vapor / fluent-postgres-driver

🐘 PostgreSQL driver for Fluent.
MIT License
146 stars 53 forks source link

500 response when no model with id is found #84

Closed addisonwebb closed 6 years ago

addisonwebb commented 6 years ago

This is a similar bug to https://github.com/vapor/fluent/issues/440. When a request is made for an object and it is not found a 500 error is returned instead of a 404.

0xTim commented 6 years ago

There's a PR up to fix this in Vapor

addisonwebb commented 6 years ago

@0xTim awesome. Can you link that issue here?

0xTim commented 6 years ago

https://github.com/vapor/vapor/issues/1770 - that should fix the issue

addisonwebb commented 6 years ago

Thanks @0xTim. Closing this as a duplicate.