From ff5440ec5033056e4666f28b46c0928dddfa426f Mon Sep 17 00:00:00 2001 From: Luca Di Grazia Date: Sun, 4 Sep 2022 19:35:02 +0200 Subject: [PATCH] Restore error messages during a repository rule fetch failure to not suppress contextual console output See https://github.com/bazelbuild/bazel/issues/6670#issuecomment-500037775 Closes #8584. Change-Id: I5d69d73ac41d71c4ee75351aa52a7c5e3bccd6b4 PiperOrigin-RevId: 253645460 --- .../build/lib/skyframe/SkyframeDependencyResolver.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dataset/GitHub_Java/bazelbuild.bazel/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeDependencyResolver.java b/dataset/GitHub_Java/bazelbuild.bazel/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeDependencyResolver.java index b72e89a7a13..f8fd2e2f9ae 100644 --- a/dataset/GitHub_Java/bazelbuild.bazel/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeDependencyResolver.java +++ b/dataset/GitHub_Java/bazelbuild.bazel/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeDependencyResolver.java @@ -143,11 +143,11 @@ protected Map 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()));