summaryrefslogtreecommitdiff
path: root/test/parallel/test-fs-read-stream.js
diff options
context:
space:
mode:
authorWeijia Wang <381152119@qq.com>2017-12-13 20:48:43 +0800
committerWeijia Wang <381152119@qq.com>2017-12-24 14:09:29 +0800
commitd022cb1bdd20f10483cbe988a950548df2dfd48c (patch)
treee10d1a2c2d4957ef123a8aaadb9727bf674c00ae /test/parallel/test-fs-read-stream.js
parent4d74b52979c60391bc369be69a34463eba61f383 (diff)
downloadnode-new-d022cb1bdd20f10483cbe988a950548df2dfd48c.tar.gz
lib: combine similar error codes
There two similar error codes in lib: "ERR_VALUE_OUT_OF_RANGE" and "ERR_OUT_OF_RANGE". This change is to reduce them into "ERR_VALUE_OUT_OF_RANGE" Fixes: https://github.com/nodejs/node/issues/17603 PR-URL: https://github.com/nodejs/node/pull/17648 Fixes: https://github.com/nodejs/node/issues/17603 Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'test/parallel/test-fs-read-stream.js')
-rw-r--r--test/parallel/test-fs-read-stream.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-fs-read-stream.js b/test/parallel/test-fs-read-stream.js
index ecc00edc85..1b9cc4aa90 100644
--- a/test/parallel/test-fs-read-stream.js
+++ b/test/parallel/test-fs-read-stream.js
@@ -145,9 +145,9 @@ common.expectsError(
fs.createReadStream(rangeFile, { start: 10, end: 2 });
},
{
- code: 'ERR_VALUE_OUT_OF_RANGE',
- message:
- 'The value of "start" must be <= "end". Received "{start: 10, end: 2}"',
+ code: 'ERR_OUT_OF_RANGE',
+ message: 'The value of "start" is out of range. It must be <= "end". ' +
+ 'Received {start: 10, end: 2}',
type: RangeError
});