rightfold / purescript-postgresql-client

https://pursuit.purescript.org/packages/purescript-postgresql-client
BSD 3-Clause "New" or "Revised" License
35 stars 20 forks source link

WIP: Avoid `UnhandledPromiseRejectionWarning` on integrity errors #26

Closed akheron closed 5 years ago

akheron commented 5 years ago

Fixes #24

akheron commented 5 years ago

Work in progress: There's no test to check that UnhandledPromiseRejectionWarning doesn't occur. process.on('unhandledRejection', ...) can be used to detect unhandled rejections, but it's not pretty.

paluh commented 5 years ago

@akheron Sorry for delay. I hope that I find time to work on this library on weekend and make a new release.

akheron commented 5 years ago

No problem :)

paluh commented 5 years ago

I'm going to try to work on it now and publish minor release together with command addition...