diff --git a/cobigen/cobigen-core/src/main/java/com/devonfw/cobigen/impl/config/reader/TemplateSetsConfigReader.java b/cobigen/cobigen-core/src/main/java/com/devonfw/cobigen/impl/config/reader/TemplateSetsConfigReader.java index bbfd7ff58..557cd07af 100644 --- a/cobigen/cobigen-core/src/main/java/com/devonfw/cobigen/impl/config/reader/TemplateSetsConfigReader.java +++ b/cobigen/cobigen-core/src/main/java/com/devonfw/cobigen/impl/config/reader/TemplateSetsConfigReader.java @@ -64,6 +64,10 @@ private void readTemplateSets(Path configRoot) { @Override public ContextConfiguration readContextConfiguration() { + if (templateSets.isEmpty()) { + throw new InvalidConfigurationException(configRoot, + "Could not find any template-set configuration file in the given folder."); + } return templateSets.values().parallelStream().map(ts -> { TemplateSetReader tsReader; synchronized (templateSetReaderCache) {