| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Shouldn't these be TypeErrors?
Sorry, something went wrong.
There was a problem hiding this comment.
I agree. X 2
Sorry, something went wrong.
|
Ref: #13730 |
Sorry, something went wrong.
There was a problem hiding this comment.
Good, but needs a few tweaks
Sorry, something went wrong.
There was a problem hiding this comment.
{type} should be added.
{message} would be nice.
Sorry, something went wrong.
There was a problem hiding this comment.
The other way around (rename the formal parameter) - https://nodejs.org/api/util.html#util_util_promisify_original
Sorry, something went wrong.
There was a problem hiding this comment.
I agree. X 2
Sorry, something went wrong.
|
Comments addressed |
Sorry, something went wrong.
|
Better, but all common.expectsError need {type} (since before the RegEx did assert the Type as part of the message). |
Sorry, something went wrong.
|
Addressed and rebased |
Sorry, something went wrong.
There was a problem hiding this comment.
💯
Sorry, something went wrong.
|
Just found #11317. |
Sorry, something went wrong.
|
@refack I tried to find a duplicate and I didn't find that one... I am fine to remove the overlapping changes here. I guess that would be best? |
Sorry, something went wrong.
|
Oh, #11317 was closed when I was looking for it. That's why I couldn't find it 😃 |
Sorry, something went wrong.
I don't think flags need a special error code. |
Sorry, something went wrong.
Yep. |
Sorry, something went wrong.
There was a problem hiding this comment.
nit: these need to be lined up.
Sorry, something went wrong.
There was a problem hiding this comment.
this change looks entirely unrelated to the internal/errors change... it should likely be in it's own PR
Sorry, something went wrong.
There was a problem hiding this comment.
+1
Sorry, something went wrong.
There was a problem hiding this comment.
I think it is pretty much a leftover of a former change. I'll remove it again
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
should go ahead and include the message here too
Sorry, something went wrong.
There was a problem hiding this comment.
Having a specific ERR_UNKNOWN_ENCODING error would be better here.
Sorry, something went wrong.
There was a problem hiding this comment.
I believe this and the flags assertion are superseded by #11317
(Where I made the opposite argument 😉 #11317 (comment) )
Sorry, something went wrong.
There was a problem hiding this comment.
I think I agree that sticking to the generic one makes sense, but open discussion on the merits of a more specific one.
Sorry, something went wrong.
There was a problem hiding this comment.
A more specific error here would likely be better.
ERR_FS_UNKNOWN_FILE_OPEN_FLAG or something similar
Sorry, something went wrong.
|
@BridgeAR now that the other PRs landed, could you rework & rebase. Probably could use the new expectsError(fn, options) in allot of these places. |
Sorry, something went wrong.
|
Rebased |
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
Sorry, something went wrong.
|
Rebased. PTAL |
Sorry, something went wrong.
|
Can you rebase? This is conflicting with master. |
Sorry, something went wrong.
In addition refactor common.throws to common.expectsError
|
There is not much left of this after a couple of rebases as there were other PRs that got merged that did the same thing. This is happening very frequently with the internal/errors and I am wondering how it's possible to prevent these duplicates a bit better. I actually stopped opening PRs with ports because of that. I squashed the commits as they individually did not change a lot anymore. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
Sorry, something went wrong.
In addition refactor common.throws to common.expectsError PR-URL: nodejs#13829 Refs: nodejs#11273 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
| Back | FazBrowse Home | New Git URL |
Ref: #11273
Checklist
Affected core subsystem(s)
internal