File tree 2 files changed +6
-6
lines changed 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 21
21
// MODULES //
22
22
23
23
var isFunction = require ( '@stdlib/assert-is-function' ) ;
24
- var format = require ( '@stdlib/string-format ' ) ;
24
+ var format = require ( '@stdlib/error-tools-fmtprodmsg ' ) ;
25
25
26
26
27
27
// MAIN //
@@ -72,16 +72,16 @@ var format = require( '@stdlib/string-format' );
72
72
*/
73
73
function ifthenAsync ( predicate , x , y , done ) {
74
74
if ( ! isFunction ( predicate ) ) {
75
- throw new TypeError ( format ( 'invalid argument. First argument must be a function. Value: `%s`. ' , predicate ) ) ;
75
+ throw new TypeError ( format ( '1RH3c ' , predicate ) ) ;
76
76
}
77
77
if ( ! isFunction ( x ) ) {
78
- throw new TypeError ( format ( 'invalid argument. Second argument must be a function. Value: `%s`. ' , x ) ) ;
78
+ throw new TypeError ( format ( '1RH2H ' , x ) ) ;
79
79
}
80
80
if ( ! isFunction ( y ) ) {
81
- throw new TypeError ( format ( 'invalid argument. Third argument must be a function. Value: `%s`. ' , y ) ) ;
81
+ throw new TypeError ( format ( '1RH3N ' , y ) ) ;
82
82
}
83
83
if ( ! isFunction ( done ) ) {
84
- throw new TypeError ( format ( 'invalid argument. Last argument must be a function. Value: `%s`. ' , done ) ) ;
84
+ throw new TypeError ( format ( '1RH3q ' , done ) ) ;
85
85
}
86
86
predicate ( clbk1 ) ;
87
87
Original file line number Diff line number Diff line change 38
38
},
39
39
"dependencies" : {
40
40
"@stdlib/assert-is-function" : " ^0.2.2" ,
41
- "@stdlib/string-format " : " ^0.2.2" ,
41
+ "@stdlib/error-tools-fmtprodmsg " : " ^0.2.2" ,
42
42
"@stdlib/error-tools-fmtprodmsg" : " ^0.2.2"
43
43
},
44
44
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments