Skip to content

Commit

Permalink
StarlarkBaseExternalContext.java: propagate error message when deleti…
Browse files Browse the repository at this point in the history
…ng temporary directory failed

Related: #20013
PiperOrigin-RevId: 585046630
Change-Id: Ifdf098e7d54c1d5dca85a39afd7694dc828331a4
  • Loading branch information
meteorcloudy authored and copybara-github committed Nov 24, 2023
1 parent dad111c commit 5b4ba3e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,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 5b4ba3e

Please sign in to comment.