-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Using invalid connection string parameters leads to suboptimal error message with Node-API library #8836
Comments
So I've just had a look at this and @pimeys is correct the error was not handled correctly in javascript. I will open a PR to sort this out but there is an additional issue in that the Binary Engine throws the following error when the provided database URL is invalid
Whereas the library produces the following
I would assume that these errors should be the same |
Yeah we miss that one mapping. I'll do that in a PR. |
My side merged. |
Using a Postgres connection string with an invalid parameter (e.g.
?pool_timeout=foo
) leads to an error message.This is the error message for
generator.engineType=binary
(and current default):This is the same error message for
generator.engineType=library
:@pimeys had this to say:
We should also add a test for this.
The text was updated successfully, but these errors were encountered: