From 03b977be88645c55992404f72b3a72fa81aa90e7 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 1 Dec 2024 01:26:19 +0000 Subject: [PATCH] Transform error messages --- lib/main.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/main.js b/lib/main.js index 75dee32..7a20234 100644 --- a/lib/main.js +++ b/lib/main.js @@ -20,7 +20,7 @@ // MODULES // -var format = require( '@stdlib/string-format' ); +var format = require( '@stdlib/error-tools-fmtprodmsg' ); // MAIN // @@ -56,7 +56,7 @@ var format = require( '@stdlib/string-format' ); function instanceOf( value, constructor ) { // TODO: replace with `isCallable` check if ( typeof constructor !== 'function' ) { - throw new TypeError( format( 'invalid argument. Second argument must be callable. Value: `%s`.', constructor ) ); + throw new TypeError( format( '03v3E', constructor ) ); } return ( value instanceof constructor ); } diff --git a/package.json b/package.json index d30265f..36cf2de 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "url": "https://github.com/stdlib-js/stdlib/issues" }, "dependencies": { - "@stdlib/string-format": "^0.2.2", + "@stdlib/error-tools-fmtprodmsg": "^0.2.2", "@stdlib/error-tools-fmtprodmsg": "^0.2.2" }, "devDependencies": {