Skip to content

Commit c443e4a

Browse files
janakdrcopybara-github
authored andcommitted
Document that in a nokeep-going build, PackageErrorMessageFunction throws NoSuchPackageException.
PiperOrigin-RevId: 409138713
1 parent ca8472a commit c443e4a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/google/devtools/build/lib/skyframe/PackageErrorMessageFunction.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public SkyValue compute(SkyKey skyKey, Environment env) throws InterruptedExcept
3232
pkgValue =
3333
(PackageValue) env.getValueOrThrow(PackageValue.key(pkgId), NoSuchPackageException.class);
3434
} catch (NoSuchPackageException e) {
35+
// Note that in a no-keep-going build, this returned value is ignored by Skyframe, and the
36+
// NoSuchPackageException will be propagated up to the caller of PackageErrorMessageFunction.
3537
return PackageErrorMessageValue.ofNoSuchPackageException(e.getMessage());
3638
}
3739
if (pkgValue == null) {

0 commit comments

Comments
 (0)