Uh oh!
There was an error while loading. Please reload this page.
errors: migrate lib/console - #11340
Conversation
There was a problem hiding this comment.
I'd say just go ahead and write out WRITABLE_STREAM instead of abbreviating
There was a problem hiding this comment.
Please use the new common.expectsError() method here.
mskec
commented
Feb 13, 2017
Thank you for feedback. |
jasnell
commented
Feb 14, 2017
Yes, please add it to the docs using the pattern seen in the other PRs #11273 |
joyeecheung
commented
Feb 14, 2017
This looks like a duplicate of #11308, I've added that one to the tracking issue because that one is earlier. |
mskec
commented
Feb 14, 2017
@joyeecheung yes unfortunately I didn't see it before I started. |
fhinkel
commented
May 23, 2017
@mskec Thanks so much for putting this together. Sorry that it is dragging out for so long due to being a semver-major change. Could you rebase and also squash your commits (I think all the changes should be one commit, right?). Thanks! |
mskec
commented
May 24, 2017
@fhinkel I rebased and squashed commits. Let me know if there is anything else |
| E('ERR_ARG_NOT_ITERABLE', '%s must be iterable'); | ||
| E('ERR_ASSERTION', (msg) => msg); | ||
| E('ERR_CONSOLE_WRITABLE_STREAM', | ||
| (name) => `Console expects a writable stream instance for ${name}`); |
There was a problem hiding this comment.
Why not use the %s syntax already used by several other format strings?
There was a problem hiding this comment.
No special reason. I made this PR when there was no other error messages using %s syntax.
Will change if you think that way is better
jasnell
commented
May 25, 2017
fhinkel
commented
May 27, 2017
Thanks. Landed in 0ecdf29. |
Migrate console.js to use internal/errors.js.
Refs: #11273
cc @jasnell
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)