Skip to content

Commit

Permalink
Added the missing assembly name to the log placeholder (#1501)
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Volynets <oleksandr.volynets@gmail.com>
  • Loading branch information
ovolynets committed Nov 5, 2021
1 parent edfce28 commit d4f1584
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -721,9 +721,10 @@ private void ensureUniqueAssemblyNames(Logger log) {
List<AssemblyConfiguration> assemblyConfigurations = getAssemblyConfigurations();
Set<String> assemblyNames = new HashSet<>();
for (AssemblyConfiguration config : assemblyConfigurations) {
boolean wasElementAbsent = assemblyNames.add(config.getName());
String assemblyName = config.getName();
boolean wasElementAbsent = assemblyNames.add(assemblyName);
if (!wasElementAbsent) {
log.error("Multiple assemblies use the name %s. Please assign each assembly a unique name.");
log.error("Multiple assemblies use the name \"%s\". Please assign each assembly a unique name.", assemblyName);
throw new IllegalArgumentException("Assembly names must be unique");
}
}
Expand Down

0 comments on commit d4f1584

Please sign in to comment.