Skip to content

Commit f85d4c8

Browse files
committed
Auto-generated commit
1 parent 9788237 commit f85d4c8

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/.keepalive

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

lib/main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ var isNonNegativeInteger = require( '@stdlib/assert-is-nonnegative-integer' ).is
2424
var ctors = require( '@stdlib/array-ctors' );
2525
var afill = require( '@stdlib/array-base-filled' );
2626
var gfill = require( '@stdlib/blas-ext-base-gfill' );
27+
var format = require( '@stdlib/string-format' );
2728

2829

2930
// MAIN //
@@ -51,7 +52,7 @@ function full( length, value ) {
5152
var ctor;
5253
var out;
5354
if ( !isNonNegativeInteger( length ) ) {
54-
throw new TypeError( 'invalid argument. First argument must be a nonnegative integer. Value: `' + length + '`.' );
55+
throw new TypeError( format( 'invalid argument. First argument must be a nonnegative integer. Value: `%s`.', length ) );
5556
}
5657
if ( arguments.length > 2 ) {
5758
dtype = arguments[ 2 ];
@@ -63,7 +64,7 @@ function full( length, value ) {
6364
}
6465
ctor = ctors( dtype );
6566
if ( ctor === null ) {
66-
throw new TypeError( 'invalid argument. Third argument must be a recognized data type. Value: `' + dtype + '`.' );
67+
throw new TypeError( format( 'invalid argument. Third argument must be a recognized data type. Value: `%s`.', dtype ) );
6768
}
6869
out = new ctor( length );
6970

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"@stdlib/array-ctors": "^0.0.x",
4242
"@stdlib/assert-is-nonnegative-integer": "^0.0.x",
4343
"@stdlib/blas-ext-base-gfill": "^0.0.x",
44+
"@stdlib/string-format": "^0.0.x",
4445
"@stdlib/types": "^0.0.x"
4546
},
4647
"devDependencies": {

0 commit comments

Comments
 (0)