Skip to content

Commit eb6f43f

Browse files
buffer: reword Buffer.concat error message
this brings the error messaging in line with other node TypeError messages. fixes nodejs#7766.
1 parent 5845a6b commit eb6f43f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/buffer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Buffer.isEncoding = function(encoding) {
181181

182182
Buffer.concat = function(list, length) {
183183
if (!util.isArray(list))
184-
throw new TypeError('Usage: Buffer.concat(list[, length])');
184+
throw new TypeError('list argument must be an Array of Buffers.');
185185

186186
if (util.isUndefined(length)) {
187187
length = 0;

0 commit comments

Comments
 (0)