From e74bb60c2cda57df5bf606ac88ecd2312502c6bb Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Wed, 11 Mar 2015 16:25:37 -0700 Subject: [PATCH] buffer: reword Buffer.concat error message https://github.com/iojs/io.js/commit/31421afe897635bd86201c2e677fb881b57 a892c --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 624f2bf..a20155d 100644 --- a/index.js +++ b/index.js @@ -179,7 +179,7 @@ Buffer.isEncoding = function isEncoding (encoding) { } Buffer.concat = function concat (list, totalLength) { - if (!isArray(list)) throw new TypeError('Usage: Buffer.concat(list[, length])') + if (!isArray(list)) throw new TypeError('list argument must be an Array of Buffers.') if (list.length === 0) { return new Buffer(0) -- 2.34.1