Skip to content

Commit

Permalink
[7.1.0] StarlarkBaseExternalContext.java: propagate error message whe…
Browse files Browse the repository at this point in the history
…n deleting temporary directory failed (#21555)

Related: #20013
Commit
5b4ba3e

PiperOrigin-RevId: 585046630
Change-Id: Ifdf098e7d54c1d5dca85a39afd7694dc828331a4

Co-authored-by: Googler <pcloudy@google.com>
  • Loading branch information
bazel-io and meteorcloudy authored Mar 4, 2024
1 parent 8567b12 commit 1d871ce
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,11 @@ public StructImpl downloadAndExtract(
} catch (IOException e) {
throw new RepositoryFunctionException(
new IOException(
"Couldn't delete temporary directory (" + downloadDirectory.getPathString() + ")", e),
"Couldn't delete temporary directory ("
+ downloadDirectory.getPathString()
+ "): "
+ e.getMessage(),
e),
Transience.TRANSIENT);
}
return downloadResult;
Expand Down

0 comments on commit 1d871ce

Please sign in to comment.