diff --git a/lib/main.js b/lib/main.js index a93b8ab..2139435 100644 --- a/lib/main.js +++ b/lib/main.js @@ -31,7 +31,7 @@ var ndslice = require( '@stdlib/ndarray-base-slice' ); var maybeBroadcastArrays = require( '@stdlib/ndarray-maybe-broadcast-arrays' ); var nextCartesianIndex = require( '@stdlib/ndarray-base-next-cartesian-index' ).assign; var args2multislice = require( '@stdlib/slice-base-args2multislice' ); -var format = require( '@stdlib/string-format' ); +var format = require( '@stdlib/error-tools-fmtprodmsg' ); // MAIN // @@ -90,7 +90,7 @@ function nditerInterleaveSubarrays( arrays, ndims ) { throw new TypeError( format( 'invalid argument. First argument must be an array of ndarrays. Value: `%s`.', arrays ) ); } if ( !isPositiveInteger( ndims ) ) { - throw new TypeError( format( 'invalid argument. Second argument must be a positive integer. Value: `%s`.', ndims ) ); + throw new TypeError( format( 'null45', ndims ) ); } // Attempt to broadcast the input ndarrays... try { diff --git a/package.json b/package.json index 8ccbbe1..fe5c7d9 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "@stdlib/ndarray-maybe-broadcast-arrays": "^0.2.2", "@stdlib/ndarray-shape": "^0.2.2", "@stdlib/slice-base-args2multislice": "^0.2.2", - "@stdlib/string-format": "^0.2.2", + "@stdlib/error-tools-fmtprodmsg": "^0.2.2", "@stdlib/symbol-iterator": "^0.2.2", "@stdlib/types": "^0.4.3", "@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.2",