]> zoso.dev Git - buffer.git/commitdiff
buffer: reword Buffer.concat error message
authorFeross Aboukhadijeh <feross@feross.org>
Wed, 11 Mar 2015 23:25:37 +0000 (16:25 -0700)
committerFeross Aboukhadijeh <feross@feross.org>
Wed, 11 Mar 2015 23:25:37 +0000 (16:25 -0700)
https://github.com/iojs/io.js/commit/31421afe897635bd86201c2e677fb881b57
a892c

index.js

index 624f2bfa3042c97c6f491dd9a8dbc2ffc2adca27..a20155dc0a3837cf164f1725cde9f82843e4075a 100644 (file)
--- 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)