Skip to content

Commit 2361717

Browse files
committed
Transform error messages
1 parent 58e3c59 commit 2361717

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var ndslice = require( '@stdlib/ndarray-base-slice' );
3131
var maybeBroadcastArrays = require( '@stdlib/ndarray-maybe-broadcast-arrays' );
3232
var nextCartesianIndex = require( '@stdlib/ndarray-base-next-cartesian-index' ).assign;
3333
var args2multislice = require( '@stdlib/slice-base-args2multislice' );
34-
var format = require( '@stdlib/string-format' );
34+
var format = require( '@stdlib/error-tools-fmtprodmsg' );
3535

3636

3737
// MAIN //
@@ -90,7 +90,7 @@ function nditerInterleaveSubarrays( arrays, ndims ) {
9090
throw new TypeError( format( 'invalid argument. First argument must be an array of ndarrays. Value: `%s`.', arrays ) );
9191
}
9292
if ( !isPositiveInteger( ndims ) ) {
93-
throw new TypeError( format( 'invalid argument. Second argument must be a positive integer. Value: `%s`.', ndims ) );
93+
throw new TypeError( format( 'null45', ndims ) );
9494
}
9595
// Attempt to broadcast the input ndarrays...
9696
try {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@stdlib/ndarray-maybe-broadcast-arrays": "^0.2.2",
4747
"@stdlib/ndarray-shape": "^0.2.2",
4848
"@stdlib/slice-base-args2multislice": "^0.2.2",
49-
"@stdlib/string-format": "^0.2.2",
49+
"@stdlib/error-tools-fmtprodmsg": "^0.2.2",
5050
"@stdlib/symbol-iterator": "^0.2.2",
5151
"@stdlib/types": "^0.4.3",
5252
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.2",

0 commit comments

Comments
 (0)