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/node-v0.x-archive#7766
PR-URL: nodejs/node-v0.x-archive#8723
Reviewed-By: James M Snell <jasnell@users.noreply.github.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
chrisdickinson authored and cjihrig committed Mar 5, 2015
1 parent abd3ecf commit 31421af
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 @@ -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;
Expand Down

0 comments on commit 31421af

Please sign in to comment.