Skip to content

Commit

Permalink
refactor(scraper): make an error message more verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Apr 21, 2024
1 parent 0afe0db commit 661ba69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/quoteRecords/_scraper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 661ba69

Please sign in to comment.