Skip to content

Commit 2f588bc

Browse files
committed
fix: include invalid arguments in error messages
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 35b9284 commit 2f588bc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/node_modules/@stdlib/blas/base/dger/lib/dger.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ function dger( order, M, N, alpha, x, strideX, y, strideY, A, LDA ) {
7979
throw new RangeError( format( 'invalid argument. Third argument must be a nonnegative integer. Value: `%d`.', N ) );
8080
}
8181
if ( strideX === 0 ) {
82-
throw new RangeError( format( 'invalid argument. Sixth argument must be non-zero.' ) );
82+
throw new RangeError( format( 'invalid argument. Sixth argument must be non-zero. Value: `%d`.', strideX ) );
8383
}
8484
if ( strideY === 0 ) {
85-
throw new RangeError( format( 'invalid argument. Eighth argument must be non-zero.' ) );
85+
throw new RangeError( format( 'invalid argument. Eighth argument must be non-zero. Value: `%d`.', strideY ) );
8686
}
8787
iscm = isColumnMajor( order );
8888
if ( iscm ) {

lib/node_modules/@stdlib/blas/base/dger/lib/ndarray.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ function dger( M, N, alpha, x, strideX, offsetX, y, strideY, offsetY, A, strideA
6666
throw new RangeError( format( 'invalid argument. Second argument must be a nonnegative integer. Value: `%d`.', N ) );
6767
}
6868
if ( strideX === 0 ) {
69-
throw new RangeError( format( 'invalid argument. Fifth argument must be non-zero.' ) );
69+
throw new RangeError( format( 'invalid argument. Fifth argument must be non-zero. Value: `%d`.', strideX ) );
7070
}
7171
if ( strideY === 0 ) {
72-
throw new RangeError( format( 'invalid argument. Eighth argument must be non-zero.' ) );
72+
throw new RangeError( format( 'invalid argument. Eighth argument must be non-zero. Value: `%d`.', strideY ) );
7373
}
7474
// Check if we can early return...
7575
if ( M === 0 || N === 0 || alpha === 0.0 ) {

lib/node_modules/@stdlib/blas/base/dger/lib/ndarray.native.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ function dger( M, N, alpha, x, strideX, offsetX, y, strideY, offsetY, A, strideA
6666
throw new RangeError( format( 'invalid argument. Second argument must be a nonnegative integer. Value: `%d`.', N ) );
6767
}
6868
if ( strideX === 0 ) {
69-
throw new RangeError( format( 'invalid argument. Fifth argument must be non-zero.' ) );
69+
throw new RangeError( format( 'invalid argument. Fifth argument must be non-zero. Value: `%d`.', strideX ) );
7070
}
7171
if ( strideY === 0 ) {
72-
throw new RangeError( format( 'invalid argument. Eighth argument must be non-zero.' ) );
72+
throw new RangeError( format( 'invalid argument. Eighth argument must be non-zero. Value: `%d`.', strideY ) );
7373
}
7474
// Check if we can early return...
7575
if ( M === 0 || N === 0 || alpha === 0.0 ) {

0 commit comments

Comments
 (0)