@@ -33,7 +33,7 @@ var getOrder = require( '@stdlib/ndarray-order' );
33
33
var numel = require ( '@stdlib/ndarray-base-numel' ) ;
34
34
var nextCartesianIndex = require ( '@stdlib/ndarray-base-next-cartesian-index' ) . assign ;
35
35
var gcopy = require ( '@stdlib/blas-base-gcopy' ) ;
36
- var format = require ( '@stdlib/string-format ' ) ;
36
+ var format = require ( '@stdlib/error-tools-fmtprodmsg ' ) ;
37
37
38
38
39
39
// MAIN //
@@ -96,7 +96,7 @@ function filterMap( x, options, fcn, thisArg ) {
96
96
var v ;
97
97
var i ;
98
98
if ( ! isndarrayLike ( x ) ) {
99
- throw new TypeError ( format ( 'invalid argument. First argument must be an ndarray-like object. Value: `%s`. ' , x ) ) ;
99
+ throw new TypeError ( format ( 'null5t ' , x ) ) ;
100
100
}
101
101
if ( arguments . length < 3 ) {
102
102
clbk = options ;
@@ -116,11 +116,11 @@ function filterMap( x, options, fcn, thisArg ) {
116
116
ctx = thisArg ;
117
117
}
118
118
if ( ! isFunction ( clbk ) ) {
119
- throw new TypeError ( format ( 'invalid argument. Callback argument must be a function. Value: `%s`. ' , clbk ) ) ;
119
+ throw new TypeError ( format ( 'null2b ' , clbk ) ) ;
120
120
}
121
121
if ( hasOpts ) {
122
122
if ( ! isPlainObject ( opts ) ) {
123
- throw new TypeError ( format ( 'invalid argument. Options argument must be an object. Value: `%s`. ' , opts ) ) ;
123
+ throw new TypeError ( format ( 'null2V ' , opts ) ) ;
124
124
}
125
125
if ( hasOwnProp ( opts , 'dtype' ) ) {
126
126
dt = opts . dtype ;
@@ -129,7 +129,7 @@ function filterMap( x, options, fcn, thisArg ) {
129
129
}
130
130
if ( hasOwnProp ( opts , 'order' ) ) {
131
131
if ( ! isOrder ( opts . order ) ) {
132
- throw new TypeError ( format ( 'invalid option. `%s` option must be a recognized order. Option: `%s`. ' , 'order' , opts . order ) ) ;
132
+ throw new TypeError ( format ( 'null5C ' , 'order' , opts . order ) ) ;
133
133
}
134
134
ord = opts . order ;
135
135
}
@@ -140,7 +140,7 @@ function filterMap( x, options, fcn, thisArg ) {
140
140
ctor = ctors ( dt ) ;
141
141
if ( ctor === null ) {
142
142
// The only way we should get here is if the user provided an unsupported data type, as `getDType` should error if the input array has an unrecognized/unsupported data type...
143
- throw new TypeError ( format ( 'invalid option. `%s` option must be a recognized data type. Option: `%s`. ' , 'dtype' , opts . dtype ) ) ;
143
+ throw new TypeError ( format ( 'nullBf ' , 'dtype' , opts . dtype ) ) ;
144
144
}
145
145
// Resolve the iteration order:
146
146
if ( ord === void 0 ) {
0 commit comments