Skip to content

Commit e52fe66

Browse files
authored
Update error message
1 parent d3c7893 commit e52fe66

File tree

28 files changed

+52
-52
lines changed

28 files changed

+52
-52
lines changed

lib/node_modules/@stdlib/_tools/github/rank-users/lib/analyze.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function analyze( data, opts, clbk ) {
6262
tmp = ratio( data, params.key1, params.key2 );
6363
break;
6464
default:
65-
throw new TypeError( format( 'unknown method option. Option: `%s`.', opts.method ) );
65+
throw new TypeError( format( 'invalid option. Unknown method. Option: `%s`.', opts.method ) );
6666
}
6767
// For `created`, older users should be ranked higher...
6868
if ( opts.method === 'created' ) {

lib/node_modules/@stdlib/_tools/links/create/lib/insert.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ function insert( db, link ) {
6868
for ( i = 0; i < keys.length; i++ ) {
6969
key = keys[ i ];
7070
if ( uri === key ) {
71-
err = new Error( format( 'duplicate entry. Database already contains an entry for the provided URI: `%s`.', link.uri ) );
71+
err = new Error( format( 'invalid argument. Database already contains an entry for the provided URI: `%s`.', link.uri ) );
7272
debug( 'Found a duplicate entry: %s', JSON.stringify( db[ key] ) );
7373
return err;
7474
}
7575
if ( link.id === db[ key ].id ) {
76-
err = new Error( format( 'duplicate identifier. Database already contains an entry for the provided id: `%s`.', link.id ) );
76+
err = new Error( format( 'invalid argument. Database already contains an entry for the provided id: `%s`.', link.id ) );
7777
debug( 'Found a duplicate identifier: %s', JSON.stringify( db[ key] ) );
7878
return err;
7979
}

lib/node_modules/@stdlib/_tools/pkgs/browser-entry-points/lib/resolve_files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function resolveFiles( files, idx, clbk ) {
8686
}
8787
if ( !bool ) {
8888
debug( 'Unable to resolve file: %s (%d of %d). File does not exist.', file, k, len );
89-
error = new Error( format( 'file does not exist. Unable to resolve file: %s.', file ) );
89+
error = new Error( format( 'unexpected error. File does not exist. Unable to resolve file: %s.', file ) );
9090
return clbk( error );
9191
}
9292
debug( 'Resolved file: %s (%d of %d). File: %s.', file, k, len, file );

lib/node_modules/@stdlib/_tools/pkgs/browser-entry-points/lib/resolve_files.sync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function resolveFiles( files ) {
5858
debug( 'Resolving file: %s (%d of %d).', file, k, len );
5959
bool = exists( file );
6060
if ( !bool ) {
61-
err = new Error( format( 'file does not exist. Unable to resolve file: %s.', file ) );
61+
err = new Error( format( 'unexpected error. File does not exist. Unable to resolve file: %s.', file ) );
6262
debug( 'Encountered an error while resolving file: %s (%d of %d). Error: %s', file, k, len, err.message );
6363
return err;
6464
}

lib/node_modules/@stdlib/_tools/pkgs/entry-points/lib/resolve_files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function resolveFiles( files, idx, clbk ) {
8686
}
8787
if ( !bool ) {
8888
debug( 'Unable to resolve file: %s (%d of %d). File does not exist.', file, k, len );
89-
error = new Error( format( 'file does not exist. Unable to resolve file: %s.', file ) );
89+
error = new Error( format( 'unexpected error. File does not exist. Unable to resolve file: %s.', file ) );
9090
return clbk( error );
9191
}
9292
debug( 'Resolved file: %s (%d of %d). File: %s.', file, k, len, file );

lib/node_modules/@stdlib/_tools/pkgs/entry-points/lib/resolve_files.sync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function resolveFiles( files ) {
5858
debug( 'Resolving file: %s (%d of %d).', file, k, len );
5959
bool = exists( file );
6060
if ( !bool ) {
61-
err = new Error( format( 'file does not exist. Unable to resolve file: %s.', file ) );
61+
err = new Error( format( 'unexpected error. File does not exist. Unable to resolve file: %s.', file ) );
6262
debug( 'Encountered an error while resolving file: %s (%d of %d). Error: %s', file, k, len, err.message );
6363
return err;
6464
}

lib/node_modules/@stdlib/_tools/remark/plugins/remark-run-javascript-examples/lib/parse_config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function parse( str ) {
7474

7575
// Validate that a key-value pair has been provided:
7676
if ( conf[ i ].length !== 2 ) {
77-
return new Error( format( 'invalid configuration. Code block configuration settings should be provided as comma-separated `key:value` pairs; e.g., `foo:true, bar:"string", baz:["error",2]`. Value: `%s`.', conf[ i ].join( ':' ) ) );
77+
return new Error( format( 'unexpected error. Code block configuration settings should be provided as comma-separated `key:value` pairs (e.g., `foo:true, bar:"string", baz:["error",2]`). Value: `%s`.', conf[ i ].join( ':' ) ) );
7878
}
7979
// Trim any excess leading or trailing whitespace from the key and value:
8080
key = trim( conf[ i ][ 0 ] );
@@ -83,7 +83,7 @@ function parse( str ) {
8383
// Attempt to parse the value as JSON:
8484
v = parseJSON( v );
8585
if ( v instanceof Error ) {
86-
return new Error( format( 'invalid configuration. Code block configuration values should be parseable as JSON. Value: `%s`.', trim( conf[i][1] ) ) );
86+
return new Error( format( 'unexpected error. Code block configuration values should be parseable as JSON. Value: `%s`.', trim( conf[i][1] ) ) );
8787
}
8888
// Update output object:
8989
out[ key ] = v;

lib/node_modules/@stdlib/array/complex128/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function Complex128Array() {
280280
} else {
281281
buf = arguments[ 0 ];
282282
if ( !isArrayBuffer( buf ) ) {
283-
throw new TypeError( format( 'invalid argument. First argument must be an array buffer. Value: `%s`.', buf ) );
283+
throw new TypeError( format( 'invalid argument. First argument must be an ArrayBuffer. Value: `%s`.', buf ) );
284284
}
285285
byteOffset = arguments[ 1 ];
286286
if ( !isNonNegativeInteger( byteOffset ) ) {

lib/node_modules/@stdlib/array/complex64/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function Complex64Array() {
280280
} else {
281281
buf = arguments[ 0 ];
282282
if ( !isArrayBuffer( buf ) ) {
283-
throw new TypeError( format( 'invalid argument. First argument must be an array buffer. Value: `%s`.', buf ) );
283+
throw new TypeError( format( 'invalid argument. First argument must be an ArrayBuffer. Value: `%s`.', buf ) );
284284
}
285285
byteOffset = arguments[ 1 ];
286286
if ( !isNonNegativeInteger( byteOffset ) ) {

lib/node_modules/@stdlib/array/shared-buffer/lib/polyfill.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* @throws {Error} not implemented
2828
*/
2929
function polyfill( size ) { // eslint-disable-line no-unused-vars
30-
throw new Error( 'The current environment does not support SharedArrayBuffers, and, unfortunately, SharedArrayBuffers cannot be polyfilled. For shared memory applications, upgrade your runtime environment to one which supports SharedArrayBuffers.' );
30+
throw new Error( 'not supported. The current environment does not support SharedArrayBuffers, and, unfortunately, SharedArrayBuffers cannot be polyfilled. For shared memory applications, upgrade your runtime environment to one which supports SharedArrayBuffers.' );
3131
}
3232

3333

0 commit comments

Comments
 (0)