internal/util: use internal/errors.js#11301
Conversation
42ca4c3 to
0cb54ec
Compare
There was a problem hiding this comment.
nit: indentation looks off here?
There was a problem hiding this comment.
@joyeecheung: the indentation is suggested by the linter
There was a problem hiding this comment.
Hmm, looks like the linter is OK with arguments not indented the same way, as long as it's indented? Anyway it doesn't need to be fixed, just a nit :D
There was a problem hiding this comment.
No, the linter expects the identation to start at an exact position: the position where the parameters start on the previous line.
lib/internal/errors.js
Outdated
There was a problem hiding this comment.
I think this function should go to the top.
|
We're finally able to move forward on this, but it's going to need a rebase |
0cb54ec to
70f3091
Compare
|
Rebase done |
|
@nodejs/ctc ... this is ready to go, but as a semver-major needs another CTC member to sign off |
Trott
left a comment
There was a problem hiding this comment.
LGTM modulo textual nits and assuming CI is green.
doc/api/errors.md
Outdated
There was a problem hiding this comment.
Nit: Please put a period at the end of the sentence.
lib/internal/errors.js
Outdated
|
Changes done |
70f3091 to
498b4b3
Compare
|
@jasnell Should the |
There was a problem hiding this comment.
this should use the object param... e.g.
common.expectsError({
code: 'ERR_NO_CRYPTO',
type: Error
});|
@seppevs Please fix @jasnell's annotation (#11301 (comment)) and resolve the conflicts. |
doc/api/errors.md
Outdated
There was a problem hiding this comment.
Please adapt this to match the wording used in #13627 ("Used when an attempt is made...").
|
Changes done |
498b4b3 to
812fb50
Compare
doc/api/errors.md
Outdated
There was a problem hiding this comment.
Nit: This should be wrapped at 80 characters. I will approve and start CI after this is fixed.
812fb50 to
efddcf1
Compare
|
Landed in de4a749, thank you! 🎉 |
PR-URL: #11301 Refs: #11273 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Franziska Hinkelmann <fhinkel@vt.edu> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Change internal/util.js so it makes use of the new internal/errors.js module.
See #11273 for more info.
cc @jasnell
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
error