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