hasura / pg-client-hs

A low level Haskell library to connect to postgres
Apache License 2.0
25 stars 15 forks source link

better error message when LISTEN fails in consuming #30

Closed tirumaraiselvan closed 3 years ago

tirumaraiselvan commented 3 years ago

We saw this error (on Cloud v1.3.3):

consuming input failed from postgres connection

coming from: https://github.com/hasura/pg-client-hs/blob/dd8a50c1a752e50d998e11a0335de8d41dea4b6c/src/Database/PG/Query/Listen.hs#L65

The documentation for consumeInput says use errorMessage to get the right error msg instead of printing a static text.