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

Fixed Marten Exceptions transformations when NpgslCommand is null #2689

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

oskardudycz
Copy link
Collaborator

@oskardudycz oskardudycz commented Aug 23, 2023

That may happen when the connection string is invalid or is not matching the database configuration (e.g. wrong password).

Added InvalidConnectionStringException - a dedicated exception type for when the connection string is invalid. Npgsql is throwing a bit of confusing ArgumentException, so I think that it'll be more accessible to add more context.

Fixes #2670

That may happen when the connection string is invalid or is not matching the database configuration (e.g. wrong password).

Added `InvalidConnectionStringException` - a dedicated exception type for when the connection string is invalid. Npgsql is throwing a bit of confusing `ArgumentException`, so I think that it'll be more accessible to add more context.
@oskardudycz oskardudycz merged commit 2b491d9 into master Aug 23, 2023
13 checks passed
@oskardudycz oskardudycz deleted the exception_transformer branch August 23, 2023 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Postgres authentication failure leads to null ref exception
1 participant