Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tokio-Postgres] Error handling: Make tokio_postgres::error::Kind public #790 #1138

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BaptisteRoseau
Copy link

@BaptisteRoseau BaptisteRoseau commented May 6, 2024

Feature request for #790

Make tokio_postgres::error::Kind public to enable users to match on it from a tokio_postgres::error::Error.

@sfackler I made two commit: one that returns a reference, the other that returns a cloned tokio_postgres::error::Kind instance. I was not sure whether it was not clonable on purpose or not.

Please see this comment for more details: #790 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant