diff options
author | micnic <micnic90@gmail.com> | 2015-10-15 00:10:25 +0300 |
---|---|---|
committer | Roman Reiss <me@silverwind.io> | 2015-11-09 20:08:36 +0100 |
commit | 20285ad17755187ece16b8a5effeaa87f5407da2 (patch) | |
tree | fd383b337137f2ab9f1fe51042d29b076f687387 /lib/_stream_readable.js | |
parent | af46112828cb28223050597f06b5e45a659e99d6 (diff) | |
download | android-node-v8-20285ad17755187ece16b8a5effeaa87f5407da2.tar.gz android-node-v8-20285ad17755187ece16b8a5effeaa87f5407da2.tar.bz2 android-node-v8-20285ad17755187ece16b8a5effeaa87f5407da2.zip |
lib: Consistent error messages in all modules
This commit fixes some error messages that are not consistent with
some general rules which most of the error messages follow.
PR-URL: https://github.com/nodejs/node/pull/3374
Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'lib/_stream_readable.js')
-rw-r--r-- | lib/_stream_readable.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index ab47830767..0316a05571 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -889,7 +889,7 @@ function endReadable(stream) { // If we get here before consuming all the bytes, then that is a // bug in node. Should never happen. if (state.length > 0) - throw new Error('endReadable called on non-empty stream'); + throw new Error('"endReadable()" called on non-empty stream'); if (!state.endEmitted) { state.ended = true; |