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 22
22
23
23
var getType = require ( '@stdlib/array-dtype' ) ;
24
24
var convert = require ( '@stdlib/array-convert' ) ;
25
- var format = require ( '@stdlib/string-format ' ) ;
25
+ var format = require ( '@stdlib/error-tools-fmtprodmsg ' ) ;
26
26
27
27
28
28
// MAIN //
@@ -48,7 +48,7 @@ var format = require( '@stdlib/string-format' );
48
48
function convertSame ( x , y ) {
49
49
var dtype = getType ( y ) ;
50
50
if ( dtype === null ) {
51
- throw new TypeError ( format ( 'invalid argument. Second argument must have a recognized/supported data type. Type: `%s`. Value: `%s`. ' , dtype , y ) ) ;
51
+ throw new TypeError ( format ( '00T2Q ' , dtype , y ) ) ;
52
52
}
53
53
return convert ( x , dtype ) ;
54
54
}
Original file line number Diff line number Diff line change 39
39
"dependencies" : {
40
40
"@stdlib/array-convert" : " ^0.2.1" ,
41
41
"@stdlib/array-dtype" : " ^0.2.1" ,
42
- "@stdlib/string-format " : " ^0.2.1" ,
42
+ "@stdlib/error-tools-fmtprodmsg " : " ^0.2.1" ,
43
43
"@stdlib/types" : " ^0.3.2" ,
44
44
"@stdlib/error-tools-fmtprodmsg" : " ^0.2.1"
45
45
},
You can’t perform that action at this time.
0 commit comments