Skip to content

Commit

Permalink
Fail in case one of the requested catalogs couldn't be resolved inste…
Browse files Browse the repository at this point in the history
…ad of warning about it
  • Loading branch information
aloubyansky committed Sep 14, 2021
1 parent f1a333a commit d4a5ade
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ public ExtensionCatalog resolveExtensionCatalog(Collection<ArtifactCoords> prefe
for (int i = 1; i < e.conflictingRegistries.size(); ++i) {
buf.append(", ").append(e.conflictingRegistries.get(i).getId());
}
throw new RuntimeException(buf.toString());
throw new RegistryResolutionException(buf.toString());
}

if (registries.isEmpty()) {
Expand All @@ -600,7 +600,7 @@ public ExtensionCatalog resolveExtensionCatalog(Collection<ArtifactCoords> prefe
buf.append(", ").append(registries.get(i++));
}
log.warn(buf.toString());
continue;
throw new RegistryResolutionException(buf.toString());
}

if (quarkusVersion == null) {
Expand Down

0 comments on commit d4a5ade

Please sign in to comment.