From af0e2f3e6e5e0a1dfd906b3b0da7f9db3513144c Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 3 Feb 2025 01:13:46 +0000 Subject: [PATCH] Transform error messages --- lib/main.js | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/main.js b/lib/main.js index 22ef5a6..0bf4ef0 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 // @@ -62,13 +62,13 @@ function untilAsync( predicate, fcn, done, thisArg ) { var args; var idx; if ( !isFunction( predicate ) ) { - throw new TypeError( format( 'invalid argument. First argument must be a function. Value: `%s`.', predicate ) ); + throw new TypeError( format( '1Rp3c', predicate ) ); } if ( !isFunction( fcn ) ) { - throw new TypeError( format( 'invalid argument. Second argument must be a function. Value: `%s`.', fcn ) ); + throw new TypeError( format( '1Rp2H', fcn ) ); } if ( !isFunction( done ) ) { - throw new TypeError( format( 'invalid argument. Third argument must be a function. Value: `%s`.', done ) ); + throw new TypeError( format( '1Rp3N', done ) ); } args = []; idx = 0; diff --git a/package.json b/package.json index 516609f..acf87a0 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": {