Closed madsodgaard closed 4 years ago
I am not sure what to check for on isConnectionClosed, since when adding a test the error that was catched was a ChannelError.ioOnClosedChannel?
isConnectionClosed
should probably be removed from FluentKit since I don't think any db errors can really conform to it. The individual connections already have an isClosed
property, too.
These changes are now available in 2.0.0-rc.1.1
Fixes and tests PostgresError's conformance to DatabaseError. This fixes issues like when trying to catch a constraint failure, which previously would always return
false
(#143).