Fix: build

This commit is contained in:
Pieter Vander Vennet 2023-05-19 11:48:04 +02:00
parent 2a21040551
commit dbca260132
3 changed files with 5 additions and 4 deletions

View file

@ -518,7 +518,7 @@ export async function main(args: string[]) {
const theme = AllKnownLayouts.allKnownLayouts.get(themeName)
if (theme === undefined) {
const keys = Array.from(AllKnownLayouts.allKnownLayouts.keys())
console.error("The theme " + theme + " was not found; try one of ", keys)
console.error("The theme " + themeName + " was not found; try one of ", keys)
return
}

View file

@ -421,10 +421,11 @@ class LayerOverviewUtils extends Script {
})
const skippedThemes: string[] = []
for (const themeInfo of themeFiles) {
for (let i = 0; i < themeFiles.length; i++){
const themeInfo = themeFiles[i];
const themePath = themeInfo.path
let themeFile = themeInfo.parsed
console.log(`Validating ${i}/${themeFiles.length} '${themeInfo.parsed.id}'`)
{
const targetPath =
LayerOverviewUtils.themePath +