8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25de7a5 commit 149da3eCopy full SHA for 149da3e
lib/main.js
@@ -21,7 +21,7 @@
21
// MODULES //
22
23
var isFunction = require( '@stdlib/assert-is-function' );
24
-var format = require( '@stdlib/string-format' );
+var format = require( '@stdlib/error-tools-fmtprodmsg' );
25
26
27
// MAIN //
@@ -67,13 +67,13 @@ var format = require( '@stdlib/string-format' );
67
*/
68
function trythenAsync( x, y, done ) {
69
if ( !isFunction( x ) ) {
70
- throw new TypeError( format( 'invalid argument. First argument must be a function. Value: `%s`.', x ) );
+ throw new TypeError( format( '1Rn3c', x ) );
71
}
72
if ( !isFunction( y ) ) {
73
- throw new TypeError( format( 'invalid argument. Second argument must be a function. Value: `%s`.', y ) );
+ throw new TypeError( format( '1Rn2H', y ) );
74
75
if ( !isFunction( done ) ) {
76
- throw new TypeError( format( 'invalid argument. Last argument must be a function. Value: `%s`.', done ) );
+ throw new TypeError( format( '1Rn3q', done ) );
77
78
x( clbk1 );
79
package.json
@@ -38,7 +38,7 @@
38
},
39
"dependencies": {
40
"@stdlib/assert-is-function": "^0.2.2",
41
- "@stdlib/string-format": "^0.2.2",
+ "@stdlib/error-tools-fmtprodmsg": "^0.2.2",
42
"@stdlib/error-tools-fmtprodmsg": "^0.2.2"
43
44
"devDependencies": {