From 0184b536ca196d8ed77328c43a301402bdf90c7e Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Tue, 11 Jun 2024 08:55:58 -0700 Subject: [PATCH] Fix crash on `IOException` in SingleExtensionEvalFunction Fixes #22688 Closes #22689. PiperOrigin-RevId: 642286171 Change-Id: I0c872c06c6dcffb5b90520c492bee247970f42d7 --- .../build/lib/bazel/bzlmod/SingleExtensionEvalFunction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/google/devtools/build/lib/bazel/bzlmod/SingleExtensionEvalFunction.java b/src/main/java/com/google/devtools/build/lib/bazel/bzlmod/SingleExtensionEvalFunction.java index 8edc8cc781caf0..3d521fb2e8ac4e 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/bzlmod/SingleExtensionEvalFunction.java +++ b/src/main/java/com/google/devtools/build/lib/bazel/bzlmod/SingleExtensionEvalFunction.java @@ -946,7 +946,7 @@ public RunModuleExtensionResult run( } catch (IOException e1) { ExternalDepsException externalDepsException = ExternalDepsException.withCauseAndMessage( - ExternalDeps.Code.UNRECOGNIZED, + ExternalDeps.Code.EXTERNAL_DEPS_UNKNOWN, e1, "Failed to clean up module context directory"); throw new SingleExtensionEvalFunctionException(