avram
avram copied to clipboard
PG::ResultSet#read returned a Nil. A THING was expected
I don't know if we can do this, but if there's a way to make this error better, we definitely need to...
Unhandled exception: PG::ResultSet#read returned a Nil. A Time was expected. (Exception)
This error message (including the stack trace) doesn't tell me which column I'm getting nil.
This error actually comes from crystal-db. I added a PR https://github.com/crystal-lang/crystal-db/pull/156 which should hopefully allow us to at least catch the error and return a little more information.
This has been fixed