-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Notices are Errors, not Messages #1982
Comments
Rediscovered this for #2020. I don’t think the change was intentional, but it’s existed since 2.4.0 so it’ll have to stay that way in 7.x at least. It doesn’t really make sense to expose |
Interested in changing this as part of 8.0, @brianc? (Adding it to the milestone so it’s not forgotten, but it doesn’t have to stay there.) |
Good idea! |
Slight API cleanup to make a notice instance the same shape as it was, but not be an instance of error. This is a backwards incompatible change though I expect the impact to be minimal. Closes #1982
Slight API cleanup to make a notice instance the same shape as it was, but not be an instance of error. This is a backwards incompatible change though I expect the impact to be minimal. Closes #1982
* Make notice messages not an instance of Error Slight API cleanup to make a notice instance the same shape as it was, but not be an instance of error. This is a backwards incompatible change though I expect the impact to be minimal. Closes #1982 * skip notice test in travis * Pin node@13.6 for regression in async iterators * Check and see if node 13.8 is still borked on async iterator * Yeah, node still has changed edge case behavior on stream * Emit notice messages on travis
(related to #1735)
I think
parseN
/parseE
are brokennode-postgres/lib/connection.js
Lines 635 to 640 in e4578d2
node-postgres/lib/connection.js
Lines 592 to 604 in e4578d2
It looks like the one should create a
Message
and the other should create anError
, depending on the.name
. However,parseE
does always construct theinput
message with.name === 'error'
, so theelse
path is never hit.The text was updated successfully, but these errors were encountered: