Skip to content

Commit

Permalink
Close Taskana#2200 - fix the exception text for wrong classification …
Browse files Browse the repository at this point in the history
…categoeries
  • Loading branch information
ryzheboka committed Jan 23, 2024
1 parent 03683ce commit 54657b4
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,8 @@ public static class Builder {
private final String schemaName;
private final boolean securityEnabled;

private String separator = DEFAULT_TASKANA_PROPERTY_SEPARATOR;

@TaskanaProperty("taskana.domains")
private List<String> domains = new ArrayList<>();

Expand Down Expand Up @@ -1037,6 +1039,7 @@ public Builder initTaskanaProperties(String propertiesFile, String separator) {
LOGGER.debug(
"Reading taskana configuration from {} with separator {}", propertiesFile, separator);
properties = loadProperties(propertiesFile);
this.separator=separator;
configureAnnotatedFields(separator, properties);
addMasterDomain();
return this;
Expand Down Expand Up @@ -1451,8 +1454,8 @@ private void validateConfiguration() {
"Parameter classificationCategoriesByType (taskana.classification.categories.<KEY>)"
+ " contains invalid Classification Types. "
+ "configured: %s "
+ "detected: %s",
classificationTypes, classificationCategoriesByType.keySet()));
+ "existing: %s",
classificationTypes, "["+String.join(separator,classificationCategoriesByType.keySet())+"]"));
}

if (!classificationCategoriesByType.keySet().containsAll(classificationTypes)) {
Expand Down

0 comments on commit 54657b4

Please sign in to comment.