Skip to content

Commit

Permalink
buffer: reword Buffer.concat error message
Browse files Browse the repository at this point in the history
this brings the error messaging in line with
other node TypeError messages.

fixes nodejs#7766.
  • Loading branch information
chrisdickinson committed Nov 14, 2014
1 parent 5845a6b commit eb6f43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Buffer.isEncoding = function(encoding) {

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

if (util.isUndefined(length)) {
length = 0;
Expand Down

0 comments on commit eb6f43f

Please sign in to comment.