File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ var numel = require( '@stdlib/ndarray-base-numel' );
33
33
var ind2sub = require ( '@stdlib/ndarray-base-ind2sub' ) ;
34
34
var real = require ( '@stdlib/complex-float64-real' ) ;
35
35
var imag = require ( '@stdlib/complex-float64-imag' ) ;
36
- var format = require ( '@stdlib/string-format ' ) ;
36
+ var format = require ( '@stdlib/error-tools-fmtprodmsg ' ) ;
37
37
38
38
39
39
// FUNCTIONS //
@@ -87,7 +87,7 @@ function toJSON( x ) {
87
87
var i ;
88
88
89
89
if ( ! isndarrayLike ( x ) ) {
90
- throw new TypeError ( format ( 'invalid argument. Must provide an ndarray. Value: `%s`. ' , x ) ) ;
90
+ throw new TypeError ( format ( 'nullDv ' , x ) ) ;
91
91
}
92
92
// Defer to input argument's custom implementation, if already defined...
93
93
if ( hasMethod ( x , 'toJSON' ) ) {
Original file line number Diff line number Diff line change 49
49
"@stdlib/ndarray-order" : " ^0.2.2" ,
50
50
"@stdlib/ndarray-shape" : " ^0.2.2" ,
51
51
"@stdlib/ndarray-strides" : " ^0.2.2" ,
52
- "@stdlib/string-format " : " ^0.2.2" ,
52
+ "@stdlib/error-tools-fmtprodmsg " : " ^0.2.2" ,
53
53
"@stdlib/types" : " ^0.4.3" ,
54
54
"@stdlib/error-tools-fmtprodmsg" : " ^0.2.2"
55
55
},
You can’t perform that action at this time.
0 commit comments