From 31421afe897635bd86201c2e677fb881b57a892c Mon Sep 17 00:00:00 2001 From: Chris Dickinson Date: Thu, 13 Nov 2014 16:55:16 -0800 Subject: [PATCH] buffer: reword Buffer.concat error message this brings the error messaging in line with other node TypeError messages. Fixes: https://github.com/joyent/node/issues/7766 PR-URL: https://github.com/joyent/node/pull/8723 Reviewed-By: James M Snell Reviewed-By: Colin Ihrig --- lib/buffer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/buffer.js b/lib/buffer.js index 784546d6a0bf71..b5b1e9650de982 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -170,7 +170,7 @@ Buffer.isEncoding = function(encoding) { 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 (length === undefined) { length = 0;