Skip to content

Commit 31421af

Browse files
chrisdickinsoncjihrig
authored andcommitted
buffer: reword Buffer.concat error message
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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent abd3ecf commit 31421af

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
@@ -170,7 +170,7 @@ Buffer.isEncoding = function(encoding) {
170170

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

175175
if (length === undefined) {
176176
length = 0;

0 commit comments

Comments
 (0)