diff options
Diffstat (limited to 'ext/bg/js/dictionary.js')
-rw-r--r-- | ext/bg/js/dictionary.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/bg/js/dictionary.js b/ext/bg/js/dictionary.js index e786c4e2..a4cf34ed 100644 --- a/ext/bg/js/dictionary.js +++ b/ext/bg/js/dictionary.js @@ -326,7 +326,7 @@ function dictFieldSplit(field) { return field.length === 0 ? [] : field.split(' '); } -async function dictFieldFormat(field, definition, mode, options) { +async function dictFieldFormat(field, definition, mode, options, exceptions) { const data = { marker: null, definition, @@ -347,6 +347,7 @@ async function dictFieldFormat(field, definition, mode, options) { try { return await apiTemplateRender(options.anki.fieldTemplates, data, true); } catch (e) { + if (exceptions) { exceptions.push(e); } return `{${marker}-render-error}`; } }); |