Skip to content

Commit 27c8442

Browse files
committed
Auto-generated commit
1 parent d802df3 commit 27c8442

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 dtype = require( '@stdlib/array-dtype' );
2424
var full = require( '@stdlib/array-full' );
2525
var Complex128 = require( '@stdlib/complex-float64' );
2626
var Complex64 = require( '@stdlib/complex-float32' );
27+
var format = require( '@stdlib/string-format' );
2728

2829

2930
// VARIABLES //
@@ -57,7 +58,7 @@ function onesLike( x ) {
5758

5859
dt = dtype( x ); // delegate input argument validation to dtype resolution
5960
if ( dt === null ) {
60-
throw new TypeError( 'invalid argument. First argument must be either an array, typed array, or complex typed array. Value: `' + x + '`.' );
61+
throw new TypeError( format( 'invalid argument. First argument must be either an array, typed array, or complex typed array. Value: `%s`.', x ) );
6162
}
6263
if ( arguments.length > 1 ) {
6364
dt = arguments[ 1 ];

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"@stdlib/array-full": "^0.0.x",
4242
"@stdlib/complex-float32": "^0.0.x",
4343
"@stdlib/complex-float64": "^0.0.x",
44+
"@stdlib/string-format": "^0.0.x",
4445
"@stdlib/types": "^0.0.x"
4546
},
4647
"devDependencies": {

0 commit comments

Comments
 (0)