Skip to content

Commit bf18001

Browse files
committed
Auto-generated commit
1 parent 379fa46 commit bf18001

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,6 +1250,7 @@ A total of 7 people contributed to this release. Thank you to the following cont
12501250

12511251
<details>
12521252

1253+
- [`bdf4246`](https://github.com/stdlib-js/stdlib/commit/bdf4246934e957faced935c2cda4b1f30b7ac9e9) - **refactor:** update error messages _(by Athan Reines)_
12531254
- [`9934f2c`](https://github.com/stdlib-js/stdlib/commit/9934f2ceb44cbcdc02c27d9a1a5fc231e24b10ff) - **refactor:** only branch when `y` is backed by an accessor array _(by Athan Reines)_
12541255
- [`7378f4d`](https://github.com/stdlib-js/stdlib/commit/7378f4db96fc059523a6f181388aa8f4fa202675) - **fix:** ensure support when providing no dimensions to reduce _(by Athan Reines)_
12551256
- [`abbc923`](https://github.com/stdlib-js/stdlib/commit/abbc923faa3036bb6b2bce8446a56926ef26163d) - **docs:** add example _(by Athan Reines)_

base/unary-reduce-subarray/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,13 +312,13 @@ function unaryReduceSubarray( fcn, arrays, dims, options ) { // eslint-disable-l
312312
}
313313
// Check whether we've been provided a valid number of dimensions to reduce...
314314
if ( M > ndims ) {
315-
throw new RangeError( format( 'invalid argument. Number of specified dimensions cannot exceed the number of dimensions in the input array. ndims(x) == %d. Value: [%s].', ndims, join( dims, ',' ) ) );
315+
throw new RangeError( format( 'invalid argument. Number of specified dimensions cannot exceed the number of dimensions in the input array. Number of dimensions: %d. Value: [%s].', ndims, join( dims, ',' ) ) );
316316
}
317317
// Verify that provided ndarrays have the expected number of dimensions...
318318
K = ndims - M;
319319
for ( i = 1; i < N; i++ ) {
320320
if ( arr[ i ].shape.length !== K ) {
321-
throw new Error( format( 'invalid argument. Arrays which are not being reduced must have the same number of non-reduced dimensions. ndims(x) == %d. Number of reduced dimensions: %d. ndims(arrays[%d]) == %d.', ndims, M, i, arr[ i ].shape.length ) );
321+
throw new Error( format( 'invalid argument. Arrays which are not being reduced must have the same number of non-reduced dimensions. Input array shape: [%s]. Number of reduced dimensions: %d. Array shape: [%s] (index: %d).', join( shx, ',' ), M, join( arr[ i ].shape, ',' ), i ) );
322322
}
323323
}
324324
// Determine whether we can avoid iteration altogether...

0 commit comments

Comments
 (0)