Open
Description
I am working on a CLI tool that uses this library.
Currently, pgconn returns an untyped error for "server refused TLS." See
Line 379 in 7ddbd74
This causes some friction, as I need conditional logic based on this error. The only way now is with string matching, which is not guaranteed to be stable across releases.
Can this instead be a public error const, like ErrTLSNotSupported
?
Similarly, I need conditional logic for connection errors, but that error is private now. See
Line 60 in 7ddbd74
Can that struct be made publicly visible, similar to PgError
?
If you agree, I don't mind working on the PR.
Metadata
Metadata
Assignees
Labels
No labels