Skip to content

Commit 54dde29

Browse files
committed
Transform error messages
1 parent c6e642f commit 54dde29

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
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var format = require( '@stdlib/string-format' );
23+
var format = require( '@stdlib/error-tools-fmtprodmsg' );
2424
var dtype = require( '@stdlib/array-dtype' );
2525
var full = require( '@stdlib/array-full' );
2626
var Complex128 = require( '@stdlib/complex-float64' );
@@ -53,7 +53,7 @@ function fullLike( x, value ) {
5353

5454
dt = dtype( x ); // delegate input argument validation to dtype resolution
5555
if ( dt === null ) {
56-
throw new TypeError( format( 'invalid argument. First argument must be either an array, typed array, or complex typed array. Value: `%s`.', x ) );
56+
throw new TypeError( format( '00r2f', x ) );
5757
}
5858
if ( arguments.length > 2 ) {
5959
dt = arguments[ 2 ];

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@stdlib/array-full": "^0.2.1",
4242
"@stdlib/complex-float32": "^0.2.1",
4343
"@stdlib/complex-float64": "^0.2.1",
44-
"@stdlib/string-format": "^0.2.1",
44+
"@stdlib/error-tools-fmtprodmsg": "^0.2.1",
4545
"@stdlib/types": "^0.3.2",
4646
"@stdlib/error-tools-fmtprodmsg": "^0.2.1"
4747
},

0 commit comments

Comments
 (0)