Skip to content

Use ParseConfigError in pgx.ParseConfig and pgxpool.ParseConfig #2322

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

Merged
merged 3 commits into from
May 18, 2025

Conversation

Nomlsbad
Copy link
Contributor

The ParseConfig functions in the pgx and pgxpool packages currently do not use the pgconn.ParseConfigError type for errors they return.
This PR updates them to correctly use pgconn.ParseConfigError.

Nomlsbad added 2 commits May 14, 2025 03:43
Move pgconn.NewParseConfigError function to errors.go from
export_test.go for creatin pgconn.ParseConfigError inside the pgx and
pgxpool packages.
@Nomlsbad Nomlsbad changed the title Better parse config errors Use ParseConfigError in pgx.ParseConfig and pgxpool.ParseConfig May 14, 2025
@jackc jackc merged commit fc334e4 into jackc:master May 18, 2025
14 checks passed
@jackc
Copy link
Owner

jackc commented May 18, 2025

Thanks!

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.

2 participants