Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Apr 23, 2022
1 parent 2572c44 commit 3562838
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions named-typed-tuple/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function factory( names, options ) { // eslint-disable-line max-lines-per-functi
tuple = typedarray( arguments[ 0 ], arguments[ 1 ], nfields, arguments[ 2 ] );
}
if ( tuple.length !== nfields ) {
throw new RangeError( format( 'invalid arguments. Arguments are incompatible with number of tuple fields. Number of fields: `%u`. Number of data elements: `%u`.', nfields, tuple.length ) );
throw new RangeError( format( 'invalid arguments. Arguments are incompatible with the number of tuple fields. Number of fields: `%u`. Number of data elements: `%u`.', nfields, tuple.length ) );
}
dtype = getDtype( tuple );

Expand Down Expand Up @@ -1273,7 +1273,7 @@ function factory( names, options ) { // eslint-disable-line max-lines-per-functi
}
if ( isCollection( src ) ) {
if ( src.length !== nfields ) {
throw new RangeError( format( 'invalid argument. Source is incompatible with number of tuple fields. Number of fields: `%u`. Source length: `%u`.', nfields, src.length ) );
throw new RangeError( format( 'invalid argument. Source is incompatible with the number of tuple fields. Number of fields: `%u`. Source length: `%u`.', nfields, src.length ) );
}
tuple = namedtypedtuple( nfields, opts.dtype );
if ( clbk ) {
Expand Down Expand Up @@ -1388,7 +1388,7 @@ function factory( names, options ) { // eslint-disable-line max-lines-per-functi
throw new TypeError( 'invalid invocation. `this` is not the host tuple factory.' );
}
if ( arguments.length !== nfields ) {
throw new RangeError( format( 'invalid invocation. Number of arguments incompatible with number of tuple fields. Number of fields: `%u`. Number of arguments: `%u`.', nfields, arguments.length ) );
throw new RangeError( format( 'invalid invocation. Number of arguments incompatible with the number of tuple fields. Number of fields: `%u`. Number of arguments: `%u`.', nfields, arguments.length ) );
}
args = [];
for ( i = 0; i < arguments.length; i++ ) {
Expand Down
2 changes: 1 addition & 1 deletion object-inverse-by/lib/object_inverse_by.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function invertBy( obj, opts, transform ) {
cb = opts;
} else {
if ( !isObject( opts ) ) {
throw new TypeError( format( 'invalid argument. Options arguments must be an object. Value: `%s`.', opts ) );
throw new TypeError( format( 'invalid argument. Options argument must be an object. Value: `%s`.', opts ) );
}
if ( hasOwnProp( opts, 'duplicates' ) ) {
allowDupes = opts.duplicates;
Expand Down
2 changes: 1 addition & 1 deletion open-url/lib/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var isURI = require( '@stdlib/assert/is-uri' );
*/
function openURL( url ) {
if ( !isURI( url ) ) {
throw new TypeError( format( 'invalid input value. Must provide a valid URI. Value: `%s`.', url ) );
throw new TypeError( format( 'invalid argument. Must provide a valid URI. Value: `%s`.', url ) );
}
return window.open( url );
}
Expand Down
2 changes: 1 addition & 1 deletion open-url/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function openURL( url ) {
var proc;
var i;
if ( !isURI( url ) ) {
throw new TypeError( format( 'invalid input value. Must provide a valid URI. Value: `%s`.', url ) );
throw new TypeError( format( 'invalid argument. Must provide a valid URI. Value: `%s`.', url ) );
}
args = new Array( ARGS.length );
for ( i = 0; i < ARGS.length; i++ ) {
Expand Down

0 comments on commit 3562838

Please sign in to comment.