diff --git a/named-typed-tuple/lib/main.js b/named-typed-tuple/lib/main.js index 9aee4421..bb958a59 100644 --- a/named-typed-tuple/lib/main.js +++ b/named-typed-tuple/lib/main.js @@ -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 ); @@ -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 ) { @@ -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++ ) { diff --git a/object-inverse-by/lib/object_inverse_by.js b/object-inverse-by/lib/object_inverse_by.js index 93745280..842735cd 100644 --- a/object-inverse-by/lib/object_inverse_by.js +++ b/object-inverse-by/lib/object_inverse_by.js @@ -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; diff --git a/open-url/lib/browser.js b/open-url/lib/browser.js index 1399cea5..b76bddfe 100644 --- a/open-url/lib/browser.js +++ b/open-url/lib/browser.js @@ -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 ); } diff --git a/open-url/lib/main.js b/open-url/lib/main.js index c940b789..8a9dac2e 100644 --- a/open-url/lib/main.js +++ b/open-url/lib/main.js @@ -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++ ) {