diff --git a/lib/main.js b/lib/main.js index 1a31a4d..947984c 100644 --- a/lib/main.js +++ b/lib/main.js @@ -21,7 +21,7 @@ // MODULES // var isFunction = require( '@stdlib/assert-is-function' ); -var format = require( '@stdlib/string-format' ); +var format = require( '@stdlib/error-tools-fmtprodmsg' ); // MAIN // @@ -72,16 +72,16 @@ var format = require( '@stdlib/string-format' ); */ function ifthenAsync( predicate, x, y, done ) { if ( !isFunction( predicate ) ) { - throw new TypeError( format( 'invalid argument. First argument must be a function. Value: `%s`.', predicate ) ); + throw new TypeError( format( '1RH3c', predicate ) ); } if ( !isFunction( x ) ) { - throw new TypeError( format( 'invalid argument. Second argument must be a function. Value: `%s`.', x ) ); + throw new TypeError( format( '1RH2H', x ) ); } if ( !isFunction( y ) ) { - throw new TypeError( format( 'invalid argument. Third argument must be a function. Value: `%s`.', y ) ); + throw new TypeError( format( '1RH3N', y ) ); } if ( !isFunction( done ) ) { - throw new TypeError( format( 'invalid argument. Last argument must be a function. Value: `%s`.', done ) ); + throw new TypeError( format( '1RH3q', done ) ); } predicate( clbk1 ); diff --git a/package.json b/package.json index 10c8596..1f5f9be 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ }, "dependencies": { "@stdlib/assert-is-function": "^0.2.2", - "@stdlib/string-format": "^0.2.2", + "@stdlib/error-tools-fmtprodmsg": "^0.2.2", "@stdlib/error-tools-fmtprodmsg": "^0.2.2" }, "devDependencies": {