From: Feross Aboukhadijeh Date: Wed, 11 Mar 2015 23:25:37 +0000 (-0700) Subject: buffer: reword Buffer.concat error message X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=e74bb60c2cda57df5bf606ac88ecd2312502c6bb;p=buffer.git buffer: reword Buffer.concat error message https://github.com/iojs/io.js/commit/31421afe897635bd86201c2e677fb881b57 a892c --- 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)