File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
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 //
@@ -74,13 +74,13 @@ function composeAsync() {
74
74
var i ;
75
75
nFuncs = arguments . length ;
76
76
if ( nFuncs < 2 ) {
77
- throw new Error ( 'insufficient arguments. Must provide multiple functions to compose.' ) ;
77
+ throw new Error ( format ( '1Qv1Y' ) ) ;
78
78
}
79
79
f = new<
8000
/span> Array ( nFuncs ) ;
80
80
for ( i = 0 ; i < nFuncs ; i ++ ) {
81
81
f [ i ] = arguments [ i ] ;
82
82
if ( ! isFunction ( f [ i ] ) ) {
83
- throw new TypeError ( format ( 'invalid argument. All arguments must be functions. Value: `%s`. ' , f [ i ] ) ) ;
83
+ throw new TypeError ( format ( '1QvAj ' , f [ i ] ) ) ;
84
84
}
85
85
}
86
86
return composite ;
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