diff --git a/lib/node_modules/@stdlib/stats/incr/pcorrmat/lib/main.js b/lib/node_modules/@stdlib/stats/incr/pcorrmat/lib/main.js index e70d8b578790..1b0a9a292eb8 100644 --- a/lib/node_modules/@stdlib/stats/incr/pcorrmat/lib/main.js +++ b/lib/node_modules/@stdlib/stats/incr/pcorrmat/lib/main.js @@ -296,7 +296,7 @@ function incrpcorrmat( out, means ) { throw new TypeError( format( 'invalid argument. Second argument must be a one-dimensional ndarray. Value: `%s`.', means ) ); } if ( numel( means.shape ) !== order ) { - throw new Error( 'invalid argument. The number of elements (means) in the second argument must match correlation matrix dimensions. Expected: '+order+'. Actual: '+numel( means.shape )+'.' ); + throw new Error( format( 'invalid argument. The number of elements (means) in the second argument must match correlation matrix dimensions. Expected: `%u`. Actual: `%u`.', order, numel( means.shape ) ) ); } mu = means; // TODO: should we copy this? Otherwise, internal state could be "corrupted" due to mutation outside the accumulator return accumulator2;