Skip to content

Commit 4ea0d38

Browse files
committed
Update error messages
1 parent e33f3e9 commit 4ea0d38

File tree

77 files changed

+82
-82
lines changed

Some content is hidden

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

77 files changed

+82
-82
lines changed

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( 'invalid argument. 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. Value: `%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( 'invalid argument. 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. Value: `%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-compatible/lib/resolve_dir.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function resolveDir( main, clbk ) {
5252
return clbk( error );
5353
}
5454
if ( path === null ) {
55-
error = new Error( 'unexpected error. Unable to resolve package directory as unable to find a `package.json` in a parent directory.' );
55+
error = new Error( 'unexpected error. Unable to resolve package directory as unable to find a \'package.json\' in a parent directory.' );
5656
return clbk( error );
5757
}
5858
clbk( null, dirname( path ) );

lib/node_modules/@stdlib/_tools/pkgs/browser-compatible/lib/resolve_dir.sync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function resolveDir( main ) {
4444
return path;
4545
}
4646
if ( path === null ) {
47-
return new Error( 'unexpected error. Unable to resolve package directory as unable to find a `package.json` in a parent directory.' );
47+
return new Error( 'unexpected error. Unable to resolve package directory as unable to find a \'package.json\' in a parent directory.' );
4848
}
4949
return dirname( path );
5050
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function resolveDir( main, clbk ) {
5252
return clbk( error );
5353
}
5454
if ( path === null ) {
55-
error = new Error( 'unexpected error. Unable to resolve package directory as unable to find a `package.json` in a parent directory.' );
55+
error = new Error( 'unexpected error. Unable to resolve package directory as unable to find a \'package.json\' in a parent directory.' );
5656
return clbk( error );
5757
}
5858
clbk( null, dirname( path ) );

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function resolveDir( main ) {
4444
return path;
4545
}
4646
if ( path === null ) {
47-
return new Error( 'unexpected error. Unable to resolve package directory as unable to find a `package.json` in a parent directory.' );
47+
return new Error( 'unexpected error. Unable to resolve package directory as unable to find a \'package.json\' in a parent directory.' );
4848
}
4949
return dirname( path );
5050
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function resolveDir( main, clbk ) {
5252
return clbk( error );
5353
}
5454
if ( path === null ) {
55-
error = new Error( 'unexpected error. Unable to resolve package directory as unable to find a `package.json` in a parent directory.' );
55+
error = new Error( 'unexpected error. Unable to resolve package directory as unable to find a \'package.json\' in a parent directory.' );
5656
return clbk( error );
5757
}
5858
clbk( null, dirname( path ) );

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function resolveDir( main ) {
4444
return path;
4545
}
4646
if ( path === null ) {
47-
return new Error( 'unexpected error. Unable to resolve package directory as unable to find a `package.json` in a parent directory.' );
47+
return new Error( 'unexpected error. Unable to resolve package directory as unable to find a \'package.json\' in a parent directory.' );
4848
}
4949
return dirname( path );
5050
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ function Complex128Array() {
254254
} else if ( isArrayBuffer( arguments[0] ) ) {
255255
buf = arguments[ 0 ];
256256
if ( !isInteger( buf.byteLength/BYTES_PER_ELEMENT ) ) {
257-
throw new RangeError( format( 'invalid argument. ArrayBuffer byte length must be a multiple of `%u`. Byte length: `%u`.', BYTES_PER_ELEMENT, buf.byteLength ) );
257+
throw new RangeError( format( 'invalid argument. ArrayBuffer byte length must be a multiple of %u. Byte length: `%u`.', BYTES_PER_ELEMENT, buf.byteLength ) );
258258
}
259259
buf = new Float64Array( buf );
260260
} else if ( isObject( arguments[0] ) ) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ function Complex64Array() {
254254
} else if ( isArrayBuffer( arguments[0] ) ) {
255255
buf = arguments[ 0 ];
256256
if ( !isInteger( buf.byteLength/BYTES_PER_ELEMENT ) ) {
257-
throw new RangeError( format( 'invalid argument. ArrayBuffer byte length must be a multiple of `%u`. Byte length: `%u`.', BYTES_PER_ELEMENT, buf.byteLength ) );
257+
throw new RangeError( format( 'invalid argument. ArrayBuffer byte length must be a multiple of %u. Byte length: `%u`.', BYTES_PER_ELEMENT, buf.byteLength ) );
258258
}
259259
buf = new Float32Array( buf );
260260
} else if ( isObject( arguments[0] ) ) {

lib/node_modules/@stdlib/ml/incr/kmeans/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ function incrkmeans() {
378378
throw new TypeError( format( 'invalid argument. Must provide a two-dimensional ndarray. Value: `%s`.', x ) );
379379
}
380380
if ( x.shape[ 1 ] !== ndims ) {
381-
throw new Error( format( 'invalid argument. Number of matrix columns must match centroid dimensions. Expected: `%u``. Actual: `%u`.', ndims, x.shape[ 1 ] ) );
381+
throw new Error( format( 'invalid argument. Number of matrix columns must match centroid dimensions. Expected: `%u`. Actual: `%u`.', ndims, x.shape[ 1 ] ) );
382382
}
383383
if ( o === void 0 ) {
384384
o = createVector( x.shape[ 0 ], false ); // high-level

0 commit comments

Comments
 (0)