diff --git a/lib/node_modules/@stdlib/ndarray/count-if/lib/validate.js b/lib/node_modules/@stdlib/ndarray/count-if/lib/validate.js index 3a1f3837df22..fe5c7b00edc0 100644 --- a/lib/node_modules/@stdlib/ndarray/count-if/lib/validate.js +++ b/lib/node_modules/@stdlib/ndarray/count-if/lib/validate.js @@ -77,7 +77,7 @@ function validate( opts, ndims, options ) { return new Error( format( 'invalid option. `%s` option contains duplicate indices. Option: [%s].', 'dims', join( opts.dims, ',' ) ) ); } if ( tmp.length > ndims ) { - return new RangeError( format( 'invalid option. `%s` option specifies more dimensions than exists in the input array. Number of dimensions: %d. Option: [%s].', ndims, join( opts.dims, ',' ) ) ); + return new RangeError( format( 'invalid option. `%s` option specifies more dimensions than exists in the input array. Number of dimensions: %d. Option: [%s].', 'dims', ndims, join( opts.dims, ',' ) ) ); } opts.dims = tmp; } diff --git a/lib/node_modules/@stdlib/stats/binomial-test/lib/main.js b/lib/node_modules/@stdlib/stats/binomial-test/lib/main.js index af86438987f1..a6f7c30fdd4d 100644 --- a/lib/node_modules/@stdlib/stats/binomial-test/lib/main.js +++ b/lib/node_modules/@stdlib/stats/binomial-test/lib/main.js @@ -123,7 +123,7 @@ function binomialTest() { throw new TypeError( format( 'invalid argument. Must provide a nonnegative integer. Value: `%s`.', n ) ); } if ( x > n ) { - throw new TypeError( format( 'invalid arguments. Number of successes cannot be larger than the total number of observations. x: `%u`. n: `%u`.' ) ); + throw new TypeError( format( 'invalid arguments. Number of successes cannot be larger than the total number of observations. x: `%u`. n: `%u`.', x, n ) ); } if ( arguments[ 2 ] ) { err = validate( opts, arguments[ 2 ] );