summaryrefslogtreecommitdiff
path: root/lib/_stream_transform.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_stream_transform.js')
-rw-r--r--lib/_stream_transform.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_stream_transform.js b/lib/_stream_transform.js
index ba80f5c09c..b8d4a7704a 100644
--- a/lib/_stream_transform.js
+++ b/lib/_stream_transform.js
@@ -157,7 +157,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('_transform() is not implemented');
+ throw new errors.Error('ERR_METHOD_NOT_IMPLEMENTED', '_transform');
};
Transform.prototype._write = function(chunk, encoding, cb) {