Skip to content

Commit

Permalink
devonfw#1696: added missing exception
Browse files Browse the repository at this point in the history
added exception when template set is empty
  • Loading branch information
jan-vcapgemini committed Aug 10, 2023
1 parent f33d900 commit da093d4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit da093d4

Please sign in to comment.