8000 Transform error messages · stdlib-js/utils-any@b5d0089 · GitHub
[go: up one dir, main page]

Skip to content

Commit b5d0089

Browse files
committed
Transform error messages
1 parent 733ac60 commit b5d0089

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
@@ -21,7 +21,7 @@
2121
// MODULES //
2222

2323
var isCollection = require( '@stdlib/assert-is-collection' );
24-
var format = require( '@stdlib/string-format' );
24+
var format = require( '@stdlib/error-tools-fmtprodmsg' );
2525

2626

2727
// MAIN //
@@ -43,7 +43,7 @@ function any( collection ) {
4343
var len;
4444
var i;
4545
if ( !isCollection( collection ) ) {
46-
throw new TypeError( format( 'invalid argument. Must provide a collection. Value: `%s`.', collection ) );
46+
throw new TypeError( format( '1QjAg', collection ) );
4747
}
4848
len = collection.length;
4949
for ( i = 0; i < len; i++ ) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"dependencies": {
4040
"@stdlib/assert-is-collection": "^0.2.2",
41-
"@stdlib/string-format": "^0.2.2",
41+
"@stdlib/error-tools-fmtprodmsg": "^0.2.2",
4242
"@stdlib/types": "^0.4.3",
4343
"@stdlib/error-tools-fmtprodmsg": "^0.2.2"
4444
},

0 commit comments

Comments
 (0)
0