From 661ba693a4a54c671f99ca91b700315d4ffd1a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20Poduszl=C3=B3?= <14854048+kripod@users.noreply.github.com> Date: Sun, 21 Apr 2024 06:25:04 +0200 Subject: [PATCH] refactor(scraper): make an error message more verbose --- src/content/quoteRecords/_scraper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/quoteRecords/_scraper.ts b/src/content/quoteRecords/_scraper.ts index 55be5c9e..4f6005a7 100644 --- a/src/content/quoteRecords/_scraper.ts +++ b/src/content/quoteRecords/_scraper.ts @@ -41,7 +41,7 @@ const [unitRow, ...rateRows] = XLSX.utils.sheet_to_json< >(sheet, { UTC: true }); if (unitRow == null) { - throw new Error("Cannot parse currency units"); + throw new Error("Cannot parse minor units of currencies"); } const currencies = Object.keys(unitRow).filter(