mirror of
https://github.com/xataio/pgroll.git
synced 2024-09-11 05:45:48 +03:00
Ping the database after establishing a connection for better error messages. Without this change, an error establishing a connection would be prefixed with the message from the next failure. **before**: ``` Error: unable to set pgroll.internal to true: dial tcp [::1]:7432: connect: connection refused ``` **after**: ``` Error: dial tcp [::1]:7432: connect: connection refused ``` Fixes https://github.com/xataio/pgroll/issues/133 |
||
---|---|---|
.. | ||
errors.go | ||
state_test.go | ||
state.go |