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

Provide a better exception message for invalid data source config. #2796

Merged
merged 3 commits into from
Jun 23, 2023

Conversation

kavatari
Copy link
Contributor

Ran into this config problem a couple days ago.
Using the npgsql data source builder to configure a enum mapping and providing a certificate callback not using this very same data source builder throws an exception with a default message. Which may be confusing.

Copy link
Member

@roji roji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I've pushed a commit to vary the message for each specific option, and to provide more details.

@roji roji merged commit f3e21dc into npgsql:main Jun 23, 2023
16 of 17 checks passed
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