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 21
21
// MODULES //
22
22
23
23
var isArrayLikeObject = require ( '@stdlib/assert-is-array-like-object' ) ;
24
- var format = require ( '@stdlib/string-format ' ) ;
24
+ var format = require ( '@stdlib/error-tools-fmtprodmsg ' ) ;
25
25
26
26
27
27
// FUNCTIONS //
@@ -116,7 +116,7 @@ function arrayShape( arr ) {
116
116
var ndims ;
117
117
118
118
if ( ! isArrayLikeObject ( arr ) ) {
119
- throw new TypeError ( format ( 'invalid argument. Must provide an array-like object. Value: `%s`. ' , arr ) ) ;
119
+ throw new TypeError ( format ( '01R2u ' , arr ) ) ;
120
120
}
121
121
// Initialize the shape/dimensions array:
122
122
shape = [ arr . length ] ;
Original file line number Diff line number Diff line change 38
38
},
39
39
"dependencies" : {
40
40
"@stdlib/assert-is-array-like-object" : " ^0.2.2" ,
41
- "@stdlib/string-format " : " ^0.2.2" ,
41
+ "@stdlib/error-tools-fmtprodmsg " : " ^0.2.2" ,
42
42
"@stdlib/types" : " ^0.4.3" ,
43
43
"@stdlib/error-tools-fmtprodmsg" : " ^0.2.2"
44
44
},
You can’t perform that action at this time.
0 commit comments