Skip to content

Commit

Permalink
Improved error message
Browse files Browse the repository at this point in the history
Co-authored-by: Simen Bekkhus <sbekkhus91@gmail.com>
  • Loading branch information
leftieFriele and SimenB authored Jun 22, 2024
1 parent 0417f91 commit 5a95912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ exports.getLabels = function (labelNames, args) {

if (labelNames.length !== args.length) {
throw new Error(
`Invalid number of arguments: "${args.join()}" for label names: "${labelNames.join()}".`,
`Invalid number of arguments (${args.length}): "${args.join(', ')}" for label names (${labelNames.length}): "${labelNames.join(', ')}".`,

Check failure on line 57 in lib/util.js

View workflow job for this annotation

GitHub Actions / Test on Node.js v16.x and OS ubuntu-latest

Replace `',·'` with `⏎↹↹↹↹',·',⏎↹↹↹`

Check failure on line 57 in lib/util.js

View workflow job for this annotation

GitHub Actions / Test on Node.js v16.x and OS windows-latest

Replace `',·'` with `⏎↹↹↹↹',·',⏎↹↹↹`

Check failure on line 57 in lib/util.js

View workflow job for this annotation

GitHub Actions / Test on Node.js v16.x and OS macOS-latest

Replace `',·'` with `⏎↹↹↹↹',·',⏎↹↹↹`

Check failure on line 57 in lib/util.js

View workflow job for this annotation

GitHub Actions / Test on Node.js v18.x and OS ubuntu-latest

Replace `',·'` with `⏎↹↹↹↹',·',⏎↹↹↹`

Check failure on line 57 in lib/util.js

View workflow job for this annotation

GitHub Actions / Test on Node.js v18.x and OS windows-latest

Replace `',·'` with `⏎↹↹↹↹',·',⏎↹↹↹`

Check failure on line 57 in lib/util.js

View workflow job for this annotation

GitHub Actions / Test on Node.js v18.x and OS macOS-latest

Replace `',·'` with `⏎↹↹↹↹',·',⏎↹↹↹`

Check failure on line 57 in lib/util.js

View workflow job for this annotation

GitHub Actions / Test on Node.js v20.x and OS ubuntu-latest

Replace `',·'` with `⏎↹↹↹↹',·',⏎↹↹↹`

Check failure on line 57 in lib/util.js

View workflow job for this annotation

GitHub Actions / Test on Node.js v20.x and OS windows-latest

Replace `',·'` with `⏎↹↹↹↹',·',⏎↹↹↹`

Check failure on line 57 in lib/util.js

View workflow job for this annotation

GitHub Actions / Test on Node.js v20.x and OS macOS-latest

Replace `',·'` with `⏎↹↹↹↹',·',⏎↹↹↹`

Check failure on line 57 in lib/util.js

View workflow job for this annotation

GitHub Actions / Test on Node.js v21.x and OS ubuntu-latest

Replace `',·'` with `⏎↹↹↹↹',·',⏎↹↹↹`

Check failure on line 57 in lib/util.js

View workflow job for this annotation

GitHub Actions / Test on Node.js v21.x and OS windows-latest

Replace `',·'` with `⏎↹↹↹↹',·',⏎↹↹↹`

Check failure on line 57 in lib/util.js

View workflow job for this annotation

GitHub Actions / Test on Node.js v21.x and OS macOS-latest

Replace `',·'` with `⏎↹↹↹↹',·',⏎↹↹↹`
);
}

Expand Down

0 comments on commit 5a95912

Please sign in to comment.