diff options
Diffstat (limited to 'dev/dictionary-validate.js')
-rw-r--r-- | dev/dictionary-validate.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/dictionary-validate.js b/dev/dictionary-validate.js index efc2eb8c..51edcc50 100644 --- a/dev/dictionary-validate.js +++ b/dev/dictionary-validate.js @@ -78,8 +78,8 @@ async function validateDictionaryBanks(mode, zip, fileNameFormat, schema) { * @param {import('dev/dictionary-validate').Schemas} schemas */ export async function validateDictionary(mode, archive, schemas) { - const fileName = 'index.json'; - const indexFile = archive.files[fileName]; + const indexFileName = 'index.json'; + const indexFile = archive.files[indexFileName]; if (!indexFile) { throw new Error('No dictionary index found in archive'); } @@ -93,7 +93,7 @@ export async function validateDictionary(mode, archive, schemas) { jsonSchema.validate(index); } catch (e) { const e2 = e instanceof Error ? e : new Error(`${e}`); - e2.message += `\n(in file ${fileName})}`; + e2.message += `\n(in file ${indexFileName})}`; throw e2; } |