From 1128bb8b8afac32a8e2e486132270c12412833db Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Sun, 5 Dec 2021 05:21:29 +0100 Subject: [PATCH] GenerateLayerOverview now demans a description from builtin layers --- scripts/generateLayerOverview.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/generateLayerOverview.ts b/scripts/generateLayerOverview.ts index a4fac7a54..ceeaf61c9 100644 --- a/scripts/generateLayerOverview.ts +++ b/scripts/generateLayerOverview.ts @@ -111,6 +111,10 @@ class LayerOverviewUtils { } layerErrorCount.push(...this.validateLayer(layerFile.parsed, layerFile.path, knownPaths)) knownLayerIds.set(layerFile.parsed.id, new LayerConfig(layerFile.parsed)) + + if(layerFile.parsed.description === undefined){ + throw "The layer "+layerFile.parsed.id+" does not provide a description, but this is required for builtin themes" + } } let themeErrorCount = []