Skip to content

Commit 865249b

Browse files
committed
Update error messages
1 parent 47722bb commit 865249b

File tree

97 files changed

+162
-172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+162
-172
lines changed

lib/node_modules/@stdlib/_tools/docs/www/readme-database/lib/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function validate( opts, options ) {
7979
if ( hasOwnProp( options, 'ignore' ) ) {
8080
opts.ignore = options.ignore;
8181
if ( !isStringArray( opts.ignore ) ) {
82-
return new TypeError( format( 'invalid option. `%s` option must be a string array. Option: `%s`.', 'ignore', opts.ignore ) );
82+
return new TypeError( format( 'invalid option. `%s` option must be an array of strings. Option: `%s`.', 'ignore', opts.ignore ) );
8383
}
8484
}
8585
if ( hasOwnProp( options, 'base' ) ) {

lib/node_modules/@stdlib/_tools/docs/www/readme-fragment-file-tree/lib/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function validate( opts, options ) {
7979
if ( hasOwnProp( options, 'ignore' ) ) {
8080
opts.ignore = options.ignore;
8181
if ( !isStringArray( opts.ignore ) ) {
82-
return new TypeError( format( 'invalid option. `%s` option must be a string array. Option: `%s`.', 'ignore', opts.ignore ) );
82+
return new TypeError( format( 'invalid option. `%s` option must be an array of strings. Option: `%s`.', 'ignore', opts.ignore ) );
8383
}
8484
}
8585
if ( hasOwnProp( options, 'base' ) ) {

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-typedef-typos/test/fixtures/valid.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,10 @@ test = {
350350
' mu = arguments[ 0 ];',
351351
' beta = arguments[ 1 ];',
352352
' if ( !isNumber( mu ) || isnan( mu ) ) {',
353-
' throw new TypeError( \'invalid argument. Location parameter `mu` must be a number. Value: `\' + mu + \'`\' );',
353+
' throw new TypeError( \'invalid argument. Location parameter must be a number. Value: `\' + mu + \'`\' );',
354354
' }',
355355
' if ( !isPositive( beta ) ) {',
356-
' throw new TypeError( \'invalid argument. Scale parameter `beta` must be a positive number. Value: `\' + beta + \'`\' );',
356+
' throw new TypeError( \'invalid argument. Scale parameter must be a positive number. Value: `\' + beta + \'`\' );',
357357
' }',
358358
' } else {',
359359
' mu = 0.0;',

lib/node_modules/@stdlib/_tools/github/create-token/lib/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function validate( opts, options ) {
6161
}
6262
opts.scopes = options.scopes;
6363
if ( !isStringArray( opts.scopes ) ) {
64-
return new TypeError( format( 'invalid option. `%s` option must be a string array. Option: `%s`.', 'scopes', opts.scopes ) );
64+
return new TypeError( format( 'invalid option. `%s` option must be an array of strings. Option: `%s`.', 'scopes', opts.scopes ) );
6565
}
6666
opts.note = options.note;
6767
if ( !isString( opts.note ) ) {

lib/node_modules/@stdlib/_tools/github/fetch-file/lib/factory.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var resolve = require( './resolve.js' );
3838
* @param {StringArray} repos - array of repo slugs indicating the repositories from which to fetch a file
3939
* @param {Function} clbk - callback to invoke upon query completion
4040
* @throws {TypeError} first argument must be a string
41-
* @throws {TypeError} second argument must be a string array
41+
* @throws {TypeError} second argument must be an array of strings
4242
* @throws {TypeError} callback argument must be a function
4343
* @returns {Function} function for fetching a file from one or more repositories
4444
*/
@@ -48,7 +48,7 @@ function factory( filepath, repos, clbk ) {
4848
throw new TypeError( format( 'invalid argument. First argument must be a string. Value: `%s`.', filepath ) );
4949
}
5050
if ( !isStringArray( repos ) ) {
51-
throw new TypeError( format( 'invalid argument. Second argument must be a string array. Value: `%s`.', repos ) );
51+
throw new TypeError( format( 'invalid argument. Second argument must be an array of strings. Value: `%s`.', repos ) );
5252
}
5353
if ( !isFunction( clbk ) ) {
5454
throw new TypeError( format( 'invalid argument. Callback argument must be a function. Value: `%s`.', clbk ) );

lib/node_modules/@stdlib/_tools/github/user-details/lib/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function validate( opts, options ) {
4545
}
4646
opts.usernames = options.usernames;
4747
if ( !isStringArray( opts.usernames ) ) {
48-
return new TypeError( format( 'invalid option. `%s` option must be a string array. Option: `%s`.', 'usernames', opts.usernames ) );
48+
return new TypeError( format( 'invalid option. `%s` option must be an array of strings. Option: `%s`.', 'usernames', opts.usernames ) );
4949
}
5050
if ( hasOwnProp( options, 'token' ) ) {
5151
opts.token = options.token;

lib/node_modules/@stdlib/_tools/lint/license-header-glob/lib/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function validate( opts, options ) {
7676
if ( hasOwnProp( options, 'ignore' ) ) {
7777
opts.ignore = options.ignore;
7878
if ( !isStringArray( opts.ignore ) ) {
79-
return new TypeError( format( 'invalid option. `%s` option must be a string array. Option: `%s`.', 'ignore', opts.ignore ) );
79+
return new TypeError( format( 'invalid option. `%s` option must be an array of strings. Option: `%s`.', 'ignore', opts.ignore ) );
8080
}
8181
}
8282
if ( hasOwnProp( options, 'header' ) ) {

lib/node_modules/@stdlib/_tools/lint/pkg-json/lib/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function validate( opts, options ) {
7878
if ( hasOwnProp( options, 'ignore' ) ) {
7979
opts.ignore = options.ignore;
8080
if ( !isStringArray( opts.ignore ) ) {
81-
return new TypeError( format( 'invalid option. `%s` option must be a string array. Option: `%s`.', 'ignore', opts.ignore ) );
81+
return new TypeError( format( 'invalid option. `%s` option must be an array of strings. Option: `%s`.', 'ignore', opts.ignore ) );
8282
}
8383
}
8484
return null;

lib/node_modules/@stdlib/_tools/lint/repl-txt/lib/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function validate( opts, options ) {
7070
if ( hasOwnProp( options, 'ignore' ) ) {
7171
opts.ignore = options.ignore;
7272
if ( !isStringArray( opts.ignore ) ) {
73-
return new TypeError( format( 'invalid option. `%s` option must be a string array. Option: `%s`.', 'ignore', opts.ignore ) );
73+
return new TypeError( format( 'invalid option. `%s` option must be an array of strings. Option: `%s`.', 'ignore', opts.ignore ) );
7474
}
7575
}
7676
return null;

lib/node_modules/@stdlib/_tools/modules/pkg-deps/lib/async.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ var debug = logger( 'module-pkg-deps:async' );
5252
* @param {boolean} [options.walk=true] - boolean indicating whether to walk relative module dependencies
5353
* @param {Object} [options.aliases={}] - object mapping relative module dependency identifiers to other module identifiers
5454
* @param {Callback} clbk - callback
55-
* @throws {TypeError} first argument must be a string array
55+
* @throws {TypeError} first argument must be an array of strings
5656
* @throws {TypeError} callback argument must be a function
5757
* @throws {TypeError} options argument must be an object
5858
* @throws {TypeError} must provide valid options

0 commit comments

Comments
 (0)