diff options
author | Italo A. Casas <me@italoacasas.com> | 2016-09-26 23:51:19 -0400 |
---|---|---|
committer | Ilkka Myller <ilkka.myller@nodefield.com> | 2016-09-29 23:06:51 +0300 |
commit | 560a589e75c12cfd2c2813622a70271c962f6e0e (patch) | |
tree | 756518d3e14ff261db47bb2d3c58128003d03599 /lib/_stream_transform.js | |
parent | 33dd4ec645c5753b2009f3580e9373d1dc12647a (diff) | |
download | node-new-560a589e75c12cfd2c2813622a70271c962f6e0e.tar.gz |
stream: improve stream error messages
Improve message when tranform._transform() method is not implemented
Improve error message when Readable._read() is not implemented
Remove extra word in err msg when Writable._write() when not implemented
Remove extra word in err msg when Transform._transform() when not implemented
PR-URL: https://github.com/nodejs/node/pull/8801
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
Diffstat (limited to 'lib/_stream_transform.js')
-rw-r--r-- | lib/_stream_transform.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_stream_transform.js b/lib/_stream_transform.js index 5dc7fdd0a8..259774c45c 100644 --- a/lib/_stream_transform.js +++ b/lib/_stream_transform.js @@ -139,7 +139,7 @@ Transform.prototype.push = function(chunk, encoding) { // an error, then that'll put the hurt on the whole operation. If you // never call cb(), then you'll never get another chunk. Transform.prototype._transform = function(chunk, encoding, cb) { - throw new Error('Not implemented'); + throw new Error('_transform() is not implemented'); }; Transform.prototype._write = function(chunk, encoding, cb) { |