From e121dd999df0d5c63cdb27530ca385fbcf094b32 Mon Sep 17 00:00:00 2001 From: Kristina Chodorow Date: Wed, 17 Jun 2015 14:24:35 +0000 Subject: Print an error message when an @foo dep isn't found TransitiveTargetFunction only prints an error message if the package names match, so it was just exiting with "loading failed" when there was an error with external dependencies. -- MOS_MIGRATED_REVID=96204337 --- .../build/lib/skyframe/GraphBackedRecursivePackageProvider.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/GraphBackedRecursivePackageProvider.java') diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/GraphBackedRecursivePackageProvider.java b/src/main/java/com/google/devtools/build/lib/skyframe/GraphBackedRecursivePackageProvider.java index d36953fca6..e2c83a024c 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/GraphBackedRecursivePackageProvider.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/GraphBackedRecursivePackageProvider.java @@ -62,8 +62,7 @@ public final class GraphBackedRecursivePackageProvider implements RecursivePacka } else { // If the package key does not exist in the graph, then it must not correspond to any package, // because the SkyQuery environment has already loaded the universe. - throw new BuildFileNotFoundException(packageName.toString(), - "BUILD file not found on package path"); + throw new BuildFileNotFoundException(packageName, "BUILD file not found on package path"); } return pkgValue.getPackage(); } -- cgit v1.2.3