Skip to content

Commit 86558ee

Browse files
committed
Auto-generated commit
1 parent bf18001 commit 86558ee

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,7 @@ This release closes the following issue:
849849

850850
##### Bug Fixes
851851

852+
- [`5768926`](https://github.com/stdlib-js/stdlib/commit/5768926be4fb253947f5d44bcf6b9d8bb5c75274) - update error message
852853
- [`7378f4d`](https://github.com/stdlib-js/stdlib/commit/7378f4db96fc059523a6f181388aa8f4fa202675) - ensure support when providing no dimensions to reduce
853854
- [`91778b7`](https://github.com/stdlib-js/stdlib/commit/91778b7ca6ae2c6ee0c6017687426c3952d90098) - handle scenario where a core dimension is zero
854855

@@ -1250,6 +1251,7 @@ A total of 7 people contributed to this release. Thank you to the following cont
12501251

12511252
<details>
12521253

1254+
- [`5768926`](https://github.com/stdlib-js/stdlib/commit/5768926be4fb253947f5d44bcf6b9d8bb5c75274) - **fix:** update error message _(by Athan Reines)_
12531255
- [`bdf4246`](https://github.com/stdlib-js/stdlib/commit/bdf4246934e957faced935c2cda4b1f30b7ac9e9) - **refactor:** update error messages _(by Athan Reines)_
12541256
- [`9934f2c`](https://github.com/stdlib-js/stdlib/commit/9934f2ceb44cbcdc02c27d9a1a5fc231e24b10ff) - **refactor:** only branch when `y` is backed by an accessor array _(by Athan Reines)_
12551257
- [`7378f4d`](https://github.com/stdlib-js/stdlib/commit/7378f4db96fc059523a6f181388aa8f4fa202675) - **fix:** ensure support when providing no dimensions to reduce _(by Athan Reines)_

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ function unaryReduceSubarray( fcn, arrays, dims, options ) { // eslint-disable-l
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. Input array shape: [%s]. Number of reduced dimensions: %d. Array shape: [%s] (index: %d).', join( shx, ',' ), M, join( arr[ i ].shape, ',' ), i ) );
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 non-reduced dimensions: %d. Array shape: [%s] (index: %d).', join( shx, ',' ), K, join( arr[ i ].shape, ',' ), i ) );
322322
}
323323
}
324324
// Determine whether we can avoid iteration altogether...

0 commit comments

Comments
 (0)