File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ var isAccessorArray = require( '@stdlib/array-base-assert-is-accessor-array' );
27
27
var accessorSetter = require ( '@stdlib/array-base-accessor-setter' ) ;
28
28
var setter = require ( '@stdlib/array-base-setter' ) ;
29
29
var dtype = require ( '@stdlib/array-dtype' ) ;
30
- var format = require ( '@stdlib/string-format ' ) ;
30
+ var format = require ( '@stdlib/error-tools-fmtprodmsg ' ) ;
31
31
32
32
33
33
// MAIN //
@@ -71,20 +71,20 @@ function iterator2array() {
71
71
if ( arguments . length > 2 ) {
72
72
fcn = arguments [ 2 ] ;
73
73
if ( ! isFunction ( fcn ) ) {
74
- throw new TypeError ( format ( 'invalid argument. Callback argument must be a function. Value: `%s`. ' , fcn ) ) ;
74
+ throw new TypeError ( format ( '00p2b ' , fcn ) ) ;
75
75
}
76
76
thisArg = arguments [ 3 ] ;
77
77
}
78
78
} else {
79
79
fcn = arguments [ 1 ] ;
80
80
if ( ! isFunction ( fcn ) ) {
81
- throw new TypeError ( format ( 'invalid argument. Callback argument must be a function. Value: `%s`. ' , fcn ) ) ;
81
+ throw new TypeError ( format ( '00p2b ' , fcn ) ) ;
82
82
}
83
83
thisArg = arguments [ 2 ] ;
84
84
}
85
85
}
86
86
if ( ! isIteratorLike ( iterator ) ) {
87
- throw new TypeError ( format ( 'invalid argument. Iterator argument must be an iterator protocol-compliant object. Value: `%s`. ' , iterator ) ) ;
87
+ throw new TypeError ( format ( '00p2c ' , iterator ) ) ;
88
88
}
89
89
i = - 1 ;
90
90
if ( out === void 0 ) {
Original file line number Diff line number Diff line change 44
44
"@stdlib/assert-is-collection" : " ^0.2.2" <
5F93
/span>,
45
45
"@stdlib/assert-is-function" : " ^0.2.2" ,
46
46
"@stdlib/assert-is-iterator-like" : " ^0.2.2" ,
47
- "@stdlib/string-format " : " ^0.2.2" ,
47
+ "@stdlib/error-tools-fmtprodmsg " : " ^0.2.2" ,
48
48
"@stdlib/types" : " ^0.4.3" ,
49
49
"@stdlib/error-tools-fmtprodmsg" : " ^0.2.2"
50
50
},
You can’t perform that action at this time.
0 commit comments