diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-11-06 17:55:25 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-11-06 18:45:00 -0400 |
commit | 06949e1d20d38d38eb05999ca236f2c7d150691e (patch) | |
tree | cd6c884d7c0ec7c0eeb5dd6120ba090b1d8d34be /src/data | |
parent | 39a2f042cd6275f06977be6fe9335bd76fb94222 (diff) |
upd8: basic watchLanguageFile integration for internal language
Diffstat (limited to 'src/data')
-rw-r--r-- | src/data/language.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/data/language.js b/src/data/language.js index ec38cbde..5ab3936e 100644 --- a/src/data/language.js +++ b/src/data/language.js @@ -120,6 +120,8 @@ export function watchLanguageFile(file, { try { properties = await processLanguageSpecFromFile(file); } catch (error) { + events.emit('error', error); + if (logging) { if (successfullyAppliedLanguage) { logWarn`Failed to load language ${basename} - using existing version`; @@ -128,6 +130,7 @@ export function watchLanguageFile(file, { } showAggregate(error, {showTraces: false}); } + return; } |