Skip to content

Commit 800ee89

Browse files
committed
Auto-generated commit
1 parent fec1827 commit 800ee89

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ var isString = require( '@stdlib/assert-is-string' ).isPrimitive;
2424
var ctors = require( '@stdlib/array-typed-ctors' );
2525
var reinterpret128 = require( '@stdlib/strided-base-reinterpret-complex128' );
2626
var reinterpret64 = require( '@stdlib/strided-base-reinterpret-complex64' );
27+
var format = require( '@stdlib/string-format' );
2728

2829

2930
// VARIABLES //
@@ -131,7 +132,7 @@ function typedarray() {
131132
}
132133
ctor = ctors( dtype );
133134
if ( ctor === null ) {
134-
throw new TypeError( 'invalid argument. Must provide a recognized data type. Value: `'+dtype+'`.' );
135+
throw new TypeError( format( 'invalid argument. Must provide a recognized data type. Value: `%s`.', dtype ) );
135136
}
136137
if ( nargs <= 0 ) {
137138
return new ctor( 0 );

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"@stdlib/assert-is-string": "^0.0.x",
4242
"@stdlib/strided-base-reinterpret-complex128": "^0.0.x",
4343
"@stdlib/strided-base-reinterpret-complex64": "^0.0.x",
44+
"@stdlib/string-format": "^0.0.x",
4445
"@stdlib/types": "^0.0.x"
4546
},
4647
"devDependencies": {

0 commit comments

Comments
 (0)