yesodweb/yesod — Issue #156: persist get404 returns 500 error after first 404
Author: amosr
Created: 2011-10-14 03:39:16+00:00
State: open

Hi,
I was just going through the example at the very bottom of the Persistent page: http://www.yesodweb.com/book/persistent
And playing around, if I request /person/999 (assuming there is no 999), it displays a 404 (correct).
After that though, if I refresh or request any page it shows 500 internal server error.
The error message is "user error (SQLite3 returned ErrorError while attempting to perform step.)"

I copied the get404 implementation and adding an extra lift, changing the match to...
```
Nothing -> lift$ lift notFound
```
fixed it, but I don't really know whether that's just a hacky fix or what's really going on.