File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 23
23
var isString = require ( '@stdlib/assert-is-string' ) . isPrimitive ;
24
24
var ctors = require ( '@stdlib/array-typed-complex-ctors' ) ;
25
25
var defaults = require ( '@stdlib/array-defaults' ) ;
26
- var format = require ( '@stdlib/string-format ' ) ;
26
+ var format = require ( '@stdlib/error-tools-fmtprodmsg ' ) ;
27
27
28
28
29
29
// VARIABLES //
@@ -129,7 +129,7 @@ function complexarray() {
129
129
}
130
130
ctor = ctors ( dtype ) ;
131
131
if ( ctor === null ) {
132
- throw new TypeError ( format ( 'invalid argument. Must provide a recognized data type. Value: `%s`. ' , dtype ) ) ;
132
+ throw new TypeError ( format ( '01r2Y ' , dtype ) ) ;
133
133
}
134
134
if ( nargs <= 0 ) {
135
135
return new ctor ( 0 ) ;
Original file line number Diff line number Diff line change 40
40
"@stdlib/array-defaults" : " ^0.3.0" ,
41
41
"@stdlib/array-typed-complex-ctors" : " ^0.2.2" ,
42
42
"@stdlib/assert-is-string" : " ^0.2.2" ,
43
- "@stdlib/string-format " : " ^0.2.2" ,
43
+ "@stdlib/error-tools-fmtprodmsg " : " ^0.2.2" ,
44
44
"@stdlib/types" : " ^0.4.3" ,
45
45
"@stdlib/error-tools-fmtprodmsg" : " ^0.2.2"
46
46
},
You can’t perform that action at this time.
0 commit comments