diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-01-09 11:33:20 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-01-09 11:33:20 -0400 |
commit | 907f81c3ddad14e028b1b5aaea8c9cd8d6b2c2df (patch) | |
tree | 710eda291c503b25aa4e4013940af310b1daa82d /src | |
parent | 3a205843397b6b4ef86d3e1ab07d93251c90e81f (diff) |
data: language: fix missing/misplaced option formatting
Diffstat (limited to 'src')
-rw-r--r-- | src/data/things/language.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data/things/language.js b/src/data/things/language.js index 724448d8..b7841ace 100644 --- a/src/data/things/language.js +++ b/src/data/things/language.js @@ -243,12 +243,12 @@ export class Language extends Thing { withAggregate({message: `Errors in options for string "${key}"`}, ({push}) => { if (!empty(missingOptionNames)) { - const names = missingOptionNames.join(`, `); + const names = Array.from(missingOptionNames).join(`, `); push(new Error(`Missing options: ${names}`)); } if (!empty(misplacedOptionNames)) { - const names = misplacedOptionNames.join(`, `); + const names = Array.from(misplacedOptionNames).join(`, `); push(new Error(`Unexpected options: ${names}`)); } }); |