From a13aa042b5f98d1a52ab011470fffd7b8a158176 Mon Sep 17 00:00:00 2001 From: Damien Laureaux Date: Tue, 12 Apr 2022 01:00:59 +0200 Subject: [PATCH] fix(prometheus): fix error message with undefined values --- src/lib/prometheus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/prometheus.js b/src/lib/prometheus.js index c7aeba7c..b3bfd8c0 100644 --- a/src/lib/prometheus.js +++ b/src/lib/prometheus.js @@ -100,7 +100,7 @@ function setMetrics(store, country, data) { }); resolve(); } catch (err) { - reject(new Error(`Prometheus Client error when setting a metric for the app "${data.appId}" (${data.country}): ${err.message}`)); + reject(new Error(`Prometheus Client error when setting a metric for the app "${data.appId}" (${store}/${country}): ${err.message}`)); } }); }