summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Dickinson <christopher.s.dickinson@gmail.com>2014-11-13 16:55:16 -0800
committerJulien Gilli <julien.gilli@joyent.com>2015-03-04 17:44:53 -0800
commitd01a900078abe4ea6159bc827ee0189a04459c8a (patch)
treefe96b36d394e2617b6a0098b98034871ec303a4e
parentc8239c08d7ad7d375683fd85745b30da789bb591 (diff)
downloadnode-d01a900078abe4ea6159bc827ee0189a04459c8a.tar.gz
buffer: reword Buffer.concat error message
this brings the error messaging in line with other node TypeError messages. fixes joyent/node#7766. PR: #8723 PR-URL: https://github.com/joyent/node/pull/8723 Reviewed-By: James M Snell <jasnell@users.noreply.github.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
-rw-r--r--lib/buffer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/buffer.js b/lib/buffer.js
index e089aceb9..afe5677b3 100644
--- a/lib/buffer.js
+++ b/lib/buffer.js
@@ -475,7 +475,7 @@ Buffer.prototype.fill = function fill(value, start, end) {
Buffer.concat = function(list, length) {
if (!Array.isArray(list)) {
- throw new TypeError('Usage: Buffer.concat(list, [length])');
+ throw new TypeError('list argument must be an Array of Buffers.');
}
if (list.length === 0) {