From 5a95912f2ff6ee88908f5b44b04cacd0bfa027ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Espen=20Dall=C3=B8kken?= Date: Sat, 22 Jun 2024 09:29:08 +0200 Subject: [PATCH] Improved error message Co-authored-by: Simen Bekkhus --- lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index 077a769f..b760319c 100644 --- a/lib/util.js +++ b/lib/util.js @@ -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(', ')}".`, ); }