diff --git a/lib/factory.js b/lib/factory.js index a6e862c..bb39a3d 100644 --- a/lib/factory.js +++ b/lib/factory.js @@ -22,7 +22,7 @@ var isFunctionArray = require( '@stdlib/assert-is-function-array' ); var isFunction = require( '@stdlib/assert-is-function' ); -var format = require( '@stdlib/string-format' ); +var format = require( '@stdlib/error-tools-fmtprodmsg' ); // MAIN // @@ -65,10 +65,10 @@ var format = require( '@stdlib/string-format' ); */ function factory( fcns, clbk, thisArg ) { if ( !isFunctionArray( fcns ) ) { - throw new TypeError( format( 'invalid argument. First argument must be an array of functions. Value: `%s`.', fcns ) ); + throw new TypeError( format( '1RdAl', fcns ) ); } if ( !isFunction( clbk ) ) { - throw new TypeError( format( 'invalid argument. Second argument must be a function. Value: `%s`.', clbk ) ); + throw new TypeError( format( '1Rd2H', clbk ) ); } return waterfall; diff --git a/package.json b/package.json index e9faec2..0b26368 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "dependencies": { "@stdlib/assert-is-function": "^0.2.2", "@stdlib/assert-is-function-array": "^0.2.2", - "@stdlib/string-format": "^0.2.2", + "@stdlib/error-tools-fmtprodmsg": "^0.2.2", "@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.2", "@stdlib/error-tools-fmtprodmsg": "^0.2.2" },