Skip to content

Commit

Permalink
Merge pull request quarkusio#20135 from aloubyansky/fail-when-catalog…
Browse files Browse the repository at this point in the history
…-cannot-be-resolved

Fail in case one of the requested catalogs couldn't be resolved instead of warning about it
  • Loading branch information
aloubyansky authored Sep 14, 2021
2 parents 9083b54 + d4a5ade commit f32f2bf
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 f32f2bf

Please sign in to comment.