8000 Transform error messages · stdlib-js/assert-instance-of@27f69d1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 27f69d1

Browse files
committed
Transform error messages
1 parent 61277f0 commit 27f69d1

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

2525

2626
// MAIN //
@@ -56,7 +56,7 @@ var format = require( '@stdlib/string-format' );
5656
function instanceOf( value, constructor ) {
5757
// TODO: replace with `isCallable` check
5858
if ( typeof constructor !== 'function' ) {
59-
throw new TypeError( format( 'invalid argument. Second argument must be callable. Value: `%s`.', constructor ) );
59+
throw new TypeError( format( '03v3E', constructor ) );
6060
}
6161
return ( value instanceof constructor );
6262
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"url": "https://github.com/stdlib-js/stdlib/issues"
3838
},
3939
"dependencies": {
40-
"@stdlib/string-format": "^0.2.2",
40+
"@stdlib/error-tools-fmtprodmsg": "^0.2.2",
4141
"@stdlib/error-tools-fmtprodmsg": "^0.2.2"
4242
},
4343
"devDependencies": {

0 commit comments

Comments
 (0)
0