diff --git a/lib/node_modules/@stdlib/stats/base/dists/hypergeometric/ctor/lib/main.js b/lib/node_modules/@stdlib/stats/base/dists/hypergeometric/ctor/lib/main.js index 892f9da3cf8e..284bd764383d 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/hypergeometric/ctor/lib/main.js +++ b/lib/node_modules/@stdlib/stats/base/dists/hypergeometric/ctor/lib/main.js @@ -125,10 +125,10 @@ function Hypergeometric( N, K, n ) { throw new TypeError( format( 'invalid argument. Number of draws must be a nonnegative integer. Value: `%s`.', n ) ); } if ( K > N ) { - throw new RangeError( 'invalid arguments. Subpopulation size must be less than or equal to the population size.' ); + throw new RangeError( format( 'invalid arguments. Subpopulation size must be less than or equal to the population size.' ) ); } if ( n > N ) { - throw new RangeError( 'invalid arguments. Number of draws must be less than or equal to the population size.' ); + throw new RangeError( format( 'invalid arguments. Number of draws must be less than or equal to the population size.' ) ); } defineProperty( this, 'N', { 'configurable': false,