Skip to content

Commit

Permalink
Restore error messages during a repository rule fetch failure to not…
Browse files Browse the repository at this point in the history
… suppress contextual console output

    See bazelbuild/bazel#6670 (comment)

    Closes #8584.

    Change-Id: I5d69d73ac41d71c4ee75351aa52a7c5e3bccd6b4
    PiperOrigin-RevId: 253645460
  • Loading branch information
Luca Di Grazia committed Sep 4, 2022
1 parent 672e960 commit ff5440e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ protected Map<Label, Target> getTargets(
Event.error(
TargetUtils.getLocationMaybe(fromTarget),
String.format(
"%s depends on %s in repository %s which failed to fetch. %s",
"%s depends on %s in repository %s which failed to fetch. "
+ e.getMessage(),
fromTarget.getLabel(),
label,
label.getPackageIdentifier().getRepository(),
e.getMessage())));
label.getPackageIdentifier().getRepository())));
continue;
}
rootCauses.add(new LoadingFailedCause(label, e.getMessage()));
Expand Down

0 comments on commit ff5440e

Please sign in to comment.