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 @@ -26,7 +26,7 @@ var dtype = require( '@stdlib/array-dtype' );
26
26
var contains = require ( '@stdlib/array-base-assert-contains' ) ;
27
27
var join = require ( '@stdlib/array-base-join' ) ;
28
28
var strided = require ( '@stdlib/stats-base-maxsorted' ) . ndarray ;
29
- var format = require ( '@stdlib/string-format ' ) ;
29
+ var format = require ( '@stdlib/error-tools-fmtprodmsg ' ) ;
30
30
31
31
32
32
// VARIABLES //
@@ -54,7 +54,7 @@ var GENERIC_DTYPE = 'generic';
54
54
function maxsorted ( x ) {
55
55
var dt ;
56
56
if ( ! isCollection ( x ) ) {
57
- throw new TypeError ( format ( 'invalid argument. First argument must be an array-like object. Value: `%s`. ' , x ) ) ;
57
+ throw new TypeError ( format ( 'null2O ' , x ) ) ;
58
58
}
59
59
dt = dtype ( x ) || GENERIC_DTYPE ;
60
60
if ( ! contains ( IDTYPES , dt ) ) {
Original file line number Diff line number Diff line change 43
43
"@stdlib/array-dtypes" : " ^0.3.0" ,
44
44
"@stdlib/assert-is-collection" : " ^0.2.2" ,
45
45
"@stdlib/stats-base-maxsorted" : " ^0.2.2" ,
46
- "@stdlib/string-format " : " ^0.2.2" ,
46
+ "@stdlib/error-tools-fmtprodmsg " : " ^0.2.2" ,
47
47
"@stdlib/types" : " ^0.4.3" ,
48
48
"@stdlib/error-tools-fmtprodmsg" : " ^0.2.2"
49
49
},
You can’t perform that action at this time.
0 commit comments