@@ -31,7 +31,7 @@ var zeros = require( '@stdlib/array-base-zeros' );
31
31
var getShape = require ( '@stdlib/ndarray-shape' ) ;
32
32
var numel = require ( '@stdlib/ndarray-base-numel' ) ;
33
33
var nextCartesianIndex = require ( '@stdlib/ndarray-base-next-cartesian-index' ) . assign ;
34
- var format = require ( '@stdlib/string-format ' ) ;
34
+ var format = require ( '@stdlib/error-tools-fmtprodmsg ' ) ;
35
35
36
36
37
37
// MAIN //
@@ -79,19 +79,19 @@ function nditerValues( x ) {
79
79
var i ;
80
80
81
81
if ( ! isndarrayLike ( x ) ) {
82
- throw new TypeError ( format ( 'invalid argument. First argument must be an ndarray. Value: `%s`. ' , x ) ) ;
82
+ throw new TypeError ( format ( '1k14f ' , x ) ) ;
83
83
}
84
84
opts = {
85
85
'order' : x . order
86
86
} ;
87
87
if ( arguments . length > 1 ) {
88
88
options = arguments [ 1 ] ;
89
89
if ( ! isPlainObject ( options ) ) {
90
- throw new TypeError ( format ( 'invalid argument. Options argument must be an object. Value: `%s`. ' , options ) ) ;
90
+ throw new TypeError ( format ( '1k12V ' , options ) ) ;
91
91
}
92
92
if ( hasOwnProp ( options , 'order' ) ) {
93
93
if ( ! isOrder ( options . order ) ) {
94
- throw new TypeError ( format ( 'invalid option. `%s` option must be a recognized order. Option: `%s`. ' , 'order' , options . order ) ) ;
94
+ throw new TypeError ( format ( '1k15C ' , 'order' , options . order ) ) ;
95
95
}
96
96
opts . order = options . order ;
97
97
}
0 commit comments