diff --git a/lib/main.js b/lib/main.js index fca1d87..05ba2f3 100644 --- a/lib/main.js +++ b/lib/main.js @@ -22,7 +22,7 @@ var isCollection = require( '@stdlib/assert-is-collection' ); var base = require( '@stdlib/array-base-none' ); -var format = require( '@stdlib/string-format' ); +var format = require( '@stdlib/error-tools-fmtprodmsg' ); // MAIN // @@ -42,7 +42,7 @@ var format = require( '@stdlib/string-format' ); */ function none( collection ) { if ( !isCollection( collection ) ) { - throw new TypeError( format( 'invalid argument. Must provide a collection. Value: `%s`.', collection ) ); + throw new TypeError( format( '1W1Ag', collection ) ); } return base( collection ); } diff --git a/package.json b/package.json index f8b8b76..5e5a3d8 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "dependencies": { "@stdlib/array-base-none": "^0.3.0", "@stdlib/assert-is-collection": "^0.2.2", - "@stdlib/string-format": "^0.2.2", + "@stdlib/error-tools-fmtprodmsg": "^0.2.2", "@stdlib/types": "^0.4.3", "@stdlib/error-tools-fmtprodmsg": "^0.2.2" },