Skip to content

Commit

Permalink
Avoid throwing exception 'Unable to fetch dependencies' if 'report.ha…
Browse files Browse the repository at this point in the history
…sError()' in ArtifactsResolver (#81)

* Avoid throwing exception 'Unable to fetch dependencies' in ArtifactsResolver
  • Loading branch information
ljfgem authored May 11, 2021
1 parent f3437d7 commit e4f6e0e
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,10 @@ private ResolveReport getDependencies(DependencySpec dependencySpec) {
try {
final ResolveReport report = _ivyInstance.resolve(md, resolveOptions);
if (report.hasError()) {
throw new RuntimeException("Unable to fetch dependencies: " + report.getAllProblemMessages());
LOG.warn("Unable to fetch dependencies: " + report.getAllProblemMessages());
}
return report;
} catch (ParseException e) {
throw new RuntimeException("Unable to fetch dependencies", e);
} catch (IOException e) {
} catch (ParseException | IOException e) {
throw new RuntimeException("Unable to fetch dependencies", e);
}
}
Expand Down

0 comments on commit e4f6e0e

Please sign in to comment.