Skip to content

Commit a0a7bac

Browse files
committed
Auto-generated commit
1 parent 1febb56 commit a0a7bac

4 files changed

Lines changed: 13 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,7 @@ A total of 100 issues were closed in this release:
733733

734734
<details>
735735

736+
- [`7b1cb99`](https://github.com/stdlib-js/stdlib/commit/7b1cb991f5525a57cfa7254bb7682060a6d85c7b) - **chore:** use `format` for error messages in strided build scripts [(#12178)](https://github.com/stdlib-js/stdlib/pull/12178) _(by Philipp Burckhardt)_
736737
- [`a615900`](https://github.com/stdlib-js/stdlib/commit/a615900caf19b4bb54ff0778986c44e6136494f7) - **feat:** update `math/base/tools` TypeScript declarations [(#12165)](https://github.com/stdlib-js/stdlib/pull/12165) _(by stdlib-bot)_
737738
- [`622d150`](https://github.com/stdlib-js/stdlib/commit/622d15033aa18a95fedfe4bfa1f66ac5799ef3f2) - **docs:** update related packages sections [(#12139)](https://github.com/stdlib-js/stdlib/pull/12139) _(by stdlib-bot)_
738739
- [`f797ee0`](https://github.com/stdlib-js/stdlib/commit/f797ee08c2803353aba4a15f22b866327488dd9b) - **chore:** fix JavaScript lint errors [(#12134)](https://github.com/stdlib-js/stdlib/pull/12134) _(by Syed Ishmum Ahnaf)_

strided/ops/add/scripts/addon.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
var resolve = require( 'path' ).resolve;
2626
var writeFile = require( '@stdlib/fs/write-file' ).sync;
2727
var readFile = require( '@stdlib/fs/read-file' ).sync;
28+
var format = require( '@stdlib/string/format' );
2829
var replace = require( '@stdlib/string/replace' );
2930
var resolveStr = require( '@stdlib/strided/base/dtype-resolve-str' );
3031
var dtypeChar = require( '@stdlib/ndarray/base/dtype-char' );
@@ -124,7 +125,7 @@ function main() {
124125
for ( i = 0; i < fcns.length; i++ ) {
125126
parts = fcns[ i ].match( RE_IO_ARGS );
126127
if ( parts === null ) {
127-
throw new Error( 'unexpected error. Unable to resolve signature dtypes. Function: `' + fcns[ i ] + '`.' );
128+
throw new Error( format( 'unexpected error. Unable to resolve signature dtypes. Function: `%s`.', fcns[ i ] ) );
128129
}
129130
tmp = [];
130131
t1 = parts[ 1 ];
@@ -140,13 +141,13 @@ function main() {
140141
for ( i = 0; i < fcns.length; i++ ) {
141142
parts = fcns[ i ].match( RE_CLBK_ARGS );
142143
if ( parts === null ) {
143-
throw new Error( 'unexpected error. Unable to resolve signature dtypes. Function: `' + fcns[ i ] + '`.' );
144+
throw new Error( format( 'unexpected error. Unable to resolve signature dtypes. Function: `%s`.', fcns[ i ] ) );
144145
}
145146
t1 = parts[ 1 ];
146147
t2 = parts[ 2 ];
147148
t3 = parts[ 3 ];
148149
if ( t1 !== t2 || t2 !== t3 ) {
149-
throw new Error( 'unexpected error. Callback arguments must all be the same. Function: `' + fcns[ i ] + '`.' );
150+
throw new Error( format( 'unexpected error. Callback arguments must all be the same. Function: `%s`.', fcns[ i ] ) );
150151
}
151152
if ( t1 === FLOAT64_CHAR ) {
152153
f = 'stdlib_base_float64_'+FCN_BASENAME;

strided/ops/mul/scripts/addon.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
var resolve = require( 'path' ).resolve;
2626
var writeFile = require( '@stdlib/fs/write-file' ).sync;
2727
var readFile = require( '@stdlib/fs/read-file' ).sync;
28+
var format = require( '@stdlib/string/format' );
2829
var replace = require( '@stdlib/string/replace' );
2930
var resolveStr = require( '@stdlib/strided/base/dtype-resolve-str' );
3031
var dtypeChar = require( '@stdlib/ndarray/base/dtype-char' );
@@ -124,7 +125,7 @@ function main() {
124125
for ( i = 0; i < fcns.length; i++ ) {
125126
parts = fcns[ i ].match( RE_IO_ARGS );
126127
if ( parts === null ) {
127-
throw new Error( 'unexpected error. Unable to resolve signature dtypes. Function: `' + fcns[ i ] + '`.' );
128+
throw new Error( format( 'unexpected error. Unable to resolve signature dtypes. Function: `%s`.', fcns[ i ] ) );
128129
}
129130
tmp = [];
130131
t1 = parts[ 1 ];
@@ -140,13 +141,13 @@ function main() {
140141
for ( i = 0; i < fcns.length; i++ ) {
141142
parts = fcns[ i ].match( RE_CLBK_ARGS );
142143
if ( parts === null ) {
143-
throw new Error( 'unexpected error. Unable to resolve signature dtypes. Function: `' + fcns[ i ] + '`.' );
144+
throw new Error( format( 'unexpected error. Unable to resolve signature dtypes. Function: `%s`.', fcns[ i ] ) );
144145
}
145146
t1 = parts[ 1 ];
146147
t2 = parts[ 2 ];
147148
t3 = parts[ 3 ];
148149
if ( t1 !== t2 || t2 !== t3 ) {
149-
throw new Error( 'unexpected error. Callback arguments must all be the same. Function: `' + fcns[ i ] + '`.' );
150+
throw new Error( format( 'unexpected error. Callback arguments must all be the same. Function: `%s`.', fcns[ i ] ) );
150151
}
151152
if ( t1 === FLOAT64_CHAR ) {
152153
f = 'stdlib_base_float64_'+FCN_BASENAME;

strided/ops/sub/scripts/addon.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
var resolve = require( 'path' ).resolve;
2626
var writeFile = require( '@stdlib/fs/write-file' ).sync;
2727
var readFile = require( '@stdlib/fs/read-file' ).sync;
28+
var format = require( '@stdlib/string/format' );
2829
var replace = require( '@stdlib/string/replace' );
2930
var resolveStr = require( '@stdlib/strided/base/dtype-resolve-str' );
3031
var dtypeChar = require( '@stdlib/ndarray/base/dtype-char' );
@@ -124,7 +125,7 @@ function main() {
124125
for ( i = 0; i < fcns.length; i++ ) {
125126
parts = fcns[ i ].match( RE_IO_ARGS );
126127
if ( parts === null ) {
127-
throw new Error( 'unexpected error. Unable to resolve signature dtypes. Function: `' + fcns[ i ] + '`.' );
128+
throw new Error( format( 'unexpected error. Unable to resolve signature dtypes. Function: `%s`.', fcns[ i ] ) );
128129
}
129130
tmp = [];
130131
t1 = parts[ 1 ];
@@ -140,13 +141,13 @@ function main() {
140141
for ( i = 0; i < fcns.length; i++ ) {
141142
parts = fcns[ i ].match( RE_CLBK_ARGS );
142143
if ( parts === null ) {
143-
throw new Error( 'unexpected error. Unable to resolve signature dtypes. Function: `' + fcns[ i ] + '`.' );
144+
throw new Error( format( 'unexpected error. Unable to resolve signature dtypes. Function: `%s`.', fcns[ i ] ) );
144145
}
145146
t1 = parts[ 1 ];
146147
t2 = parts[ 2 ];
147148
t3 = parts[ 3 ];
148149
if ( t1 !== t2 || t2 !== t3 ) {
149-
throw new Error( 'unexpected error. Callback arguments must all be the same. Function: `' + fcns[ i ] + '`.' );
150+
throw new Error( format( 'unexpected error. Callback arguments must all be the same. Function: `%s`.', fcns[ i ] ) );
150151
}
151152
if ( t1 === FLOAT64_CHAR ) {
152153
f = 'stdlib_base_float64_'+FCN_BASENAME;

0 commit comments

Comments
 (0)