From d01a900078abe4ea6159bc827ee0189a04459c8a 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 joyent/node#7766. PR: #8723 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 e089aceb91f..afe5677b348 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) {