Skip to content

Commit 8b7ba15

Browse files
committed
Update error messages
1 parent 4d7b4cf commit 8b7ba15

File tree

28 files changed

+32
-32
lines changed

28 files changed

+32
-32
lines changed

lib/node_modules/@stdlib/_tools/modules/pkg-deps/lib/async.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function pkgDeps( files, options, clbk ) {
9090
!isStr &&
9191
!isStringArray( files )
9292
) {
93-
throw new TypeError( format( 'invalid argument. First argument must be either a string or string array. Value: `%s`.', files ) );
93+
throw new TypeError( format( 'invalid argument. First argument must be either a string or array of strings. Value: `%s`.', files ) );
9494
}
9595
if ( isStr ) {
9696
list = [ files ];

lib/node_modules/@stdlib/_tools/modules/pkg-deps/lib/sync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function pkgDeps( files, options ) {
7878
!isStr &&
7979
!isStringArray( files )
8080
) {
81-
throw new TypeError( format( 'invalid argument. First argument must be either a string or string array. Value: `%s`.', files ) );
81+
throw new TypeError( format( 'invalid argument. First argument must be either a string or array of strings. Value: `%s`.', files ) );
8282
}
8383
if ( isStr ) {
8484
list = [ files ];

lib/node_modules/@stdlib/blas/ddot/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function ddot( x, y ) {
5555
throw new TypeError( format( 'invalid argument. Second argument must be a 1-dimensional ndarray containing double-precision floating-point numbers (i.e., an ndarray whose underlying data buffer is a Float64Array). Value: `%s`.', y ) );
5656
}
5757
if ( x.length !== y.length ) {
58-
throw new RangeError( format( 'invalid argument. Arrays must be the same length. First argument length: %u. Second argument length: %u.', x.length, y.length ) );
58+
throw new RangeError( format( 'invalid argument. Arrays must be the same length. First argument length: `%u`. Second argument length: `%u`.', x.length, y.length ) );
5959
}
6060
return dot( x.length, x.data, x.strides[ 0 ], x.offset, y.data, y.strides[ 0 ], y.offset ); // eslint-disable-line max-len
6161
}

lib/node_modules/@stdlib/blas/dswap/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function dswap( x, y ) {
6060
throw new TypeError( format( 'invalid argument. Second argument must be a 1-dimensional ndarray containing double-precision floating-point numbers (i.e., an ndarray whose underlying data buffer is a Float64Array). Value: `%s`.', y ) );
6161
}
6262
if ( x.length !== y.length ) {
63-
throw new RangeError( format( 'invalid argument. Arrays must be the same length. First argument length: %u. Second argument length: %u.', x.length, y.length ) );
63+
throw new RangeError( format( 'invalid argument. Arrays must be the same length. First argument length: `%u`. Second argument length: `%u`.', x.length, y.length ) );
6464
}
6565
swap( x.length, x.data, x.strides[ 0 ], x.offset, y.data, y.strides[ 0 ], y.offset ); // eslint-disable-line max-len
6666
return y;

lib/node_modules/@stdlib/blas/gdot/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function gdot( x, y ) {
8686
throw new TypeError( format( 'invalid argument. Second argument must be either an array-like object or a 1-dimensional ndarray. Value: `%s`.', y ) );
8787
}
8888
if ( x.length !== y.length ) {
89-
throw new RangeError( format( 'invalid argument. Arrays must be the same length. First argument length: %u. Second argument length: %u.', x.length, y.length ) );
89+
throw new RangeError( format( 'invalid argument. Arrays must be the same length. First argument length: `%u`. Second argument length: `%u`.', x.length, y.length ) );
9090
}
9191
if ( isxv && isyv ) {
9292
if ( isxf64 && isyf64 ) {

lib/node_modules/@stdlib/blas/gswap/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function gswap( x, y ) {
8787
throw new TypeError( format( 'invalid argument. Second argument must be either an array-like object or a 1-dimensional ndarray. Value: `%s`.', y ) );
8888
}
8989
if ( x.length !== y.length ) {
90-
throw new RangeError( format( 'invalid argument. Arrays must be the same length. First argument length: %u. Second argument length: %u.', x.length, y.length ) );
90+
throw new RangeError( format( 'invalid argument. Arrays must be the same length. First argument length: `%u`. Second argument length: `%u`.', x.length, y.length ) );
9191
}
9292
if ( isxv && isyv ) {
9393
if ( isxf64 && isyf64 ) {

lib/node_modules/@stdlib/blas/sdot/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function sdot( x, y ) {
5555
throw new TypeError( format( 'invalid argument. Second argument must be a 1-dimensional ndarray containing single-precision floating-point numbers (i.e., an ndarray whose underlying data buffer is a Float32Array). Value: `%s`.', y ) );
5656
}
5757
if ( x.length !== y.length ) {
58-
throw new RangeError( format( 'invalid argument. Arrays must be the same length. First argument length: %u. Second argument length: %u.', x.length, y.length ) );
58+
throw new RangeError( format( 'invalid argument. Arrays must be the same length. First argument length: `%u`. Second argument length: `%u`.', x.length, y.length ) );
5959
}
6060
return dot( x.length, x.data, x.strides[ 0 ], x.offset, y.data, y.strides[ 0 ], y.offset ); // eslint-disable-line max-len
6161
}

lib/node_modules/@stdlib/blas/sswap/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function sswap( x, y ) {
6060
throw new TypeError( format( 'invalid argument. Second argument must be a 1-dimensional ndarray containing single-precision floating-point numbers (i.e., an ndarray whose underlying data buffer is a Float32Array). Value: `%s`.', y ) );
6161
}
6262
if ( x.length !== y.length ) {
63-
throw new RangeError( format( 'invalid argument. Arrays must be the same length. First argument length: %u. Second argument length: %u.', x.length, y.length ) );
63+
throw new RangeError( format( 'invalid argument. Arrays must be the same length. First argument length: `%u`. Second argument length: `%u`.', x.length, y.length ) );
6464
}
6565
swap( x.length, x.data, x.strides[ 0 ], x.offset, y.data, y.strides[ 0 ], y.offset ); // eslint-disable-line max-len
6666
return y;

lib/node_modules/@stdlib/math/iter/sequences/fibonacci/lib/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function validate( opts, options ) {
5757
return new TypeError( format( 'invalid option. `%s` option must be a nonnegative integer. Option: `%s`.', 'iter', options.iter ) );
5858
}
5959
if ( options.iter > 79 ) {
60-
return new RangeError( format( 'invalid option. `%s` option must be less than or equal to `79`. Option: `%u`.', 'iter', options.iter ) );
60+
return new RangeError( format( 'invalid option. `%s` option must be less than or equal to 79. Option: `%u`.', 'iter', options.iter ) );
6161
}
6262
}
6363
return null;

lib/node_modules/@stdlib/math/iter/sequences/lucas/lib/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function validate( opts, options ) {
5757
return new TypeError( format( 'invalid option. `%s` option must be a nonnegative integer. Option: `%s`.', 'iter', options.iter ) );
5858
}
5959
if ( options.iter > 77 ) {
60-
return new RangeError( format( 'invalid option. `%s` option must be less than or equal to `77`. Option: `%u`.', 'iter', options.iter ) );
60+
return new RangeError( format( 'invalid option. `%s` option must be less than or equal to 77. Option: `%u`.', 'iter', options.iter ) );
6161
}
6262
}
6363
return null;

0 commit comments

Comments
 (0)