From 907f81c3ddad14e028b1b5aaea8c9cd8d6b2c2df Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 9 Jan 2024 11:33:20 -0400 Subject: data: language: fix missing/misplaced option formatting --- src/data/things/language.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/data/things') 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}`)); } }); -- cgit 1.3.0-6-gf8a5