Uh oh!
There was an error while loading. Please reload this page.
process: improve hrtime() error message - #14324
Conversation
Trott
commented
Jul 17, 2017
Labeled HOWEVER, it does not really matter for this PR either way because the error message that this changes is not in Node.js 8.0 and is itself semver-major. In other words, whether we land this PR or not, the message is going to change in a semver-major fashion in Node.js 9.0 |
lpinca
commented
Jul 17, 2017
Is there a particular reason apart from reducing the error message length? The original seems ok to me. |
Fishrock123
commented
Jul 17, 2017
Could be more concise, aren't we Imo not worth the major change for this though, pretty much just the same thing? |
Trott
commented
Jul 18, 2017
@lpinca In addition to reducing the error message length, I'm of the opinion that the current message is awkward. I was originally going to fix that by simply changing |
Trott
commented
Jul 18, 2017
@Fishrock123#13937 especially #13937 (comment) There are at least 4 CTC members who believe these changes should still be semver-major at this time, and there are at least 2 who believe they should be semver-patch. So there is not consensus. Thus, I labeled this semver-major based on the "if there's any doubt, then it's major" principle. |
@Fishrock123 As I wrote above, the semver major that introduces this error message in the first place has not landed. So the "not worth the major change" is not the right way to think about this, as the semver cost is zero. I'm making a (tiny) semver-major change to another semver-major change and they're both going to land in 9.0. |
Trott
commented
Jul 19, 2017
Needs one more @nodejs/ctc approval, so ping! |
Trott
commented
Jul 19, 2017
There was a problem hiding this comment.
Shouldn't it be must have length or must be of length?
Change error message from the form this format: The "time" array must have a length of 2. Received length 0 ...to this format: The array "time" (length 0) must be of length 2.
Trott
commented
Jul 19, 2017
Trott
commented
Jul 20, 2017
Landed in 43e105f |
Change error message from the form this format: The "time" array must have a length of 2. Received length 0 ...to this format: The array "time" (length 0) must be of length 2. PR-URL: nodejs#14324 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Change error message from the form this format:
...to this format:
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
process errors test