From: Feross Aboukhadijeh Date: Fri, 16 Feb 2018 08:58:17 +0000 (-0800) Subject: error message fix X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=80f65f2bf80709b48d3bb3a70f173c8f52115a92;p=buffer.git error message fix --- diff --git a/index.js b/index.js index bd071b4..f47a36a 100644 --- a/index.js +++ b/index.js @@ -126,7 +126,7 @@ function from (value, encodingOrOffset, length) { if (value == null) { throw TypeError( - 'The first argument must be one of type string, Buffer, ArrayBuffer, Array ' + + 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + 'or Array-like Object. Received type ' + (typeof value) ) }