From bdc6508b6292a7cae9707440e62988d2cb63b429 Mon Sep 17 00:00:00 2001 From: Scott Frederick Date: Thu, 16 May 2024 21:19:51 -0500 Subject: [PATCH] Catch any exception when deleting image building workspace See gh-40760 --- .../boot/buildpack/platform/build/Lifecycle.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/build/Lifecycle.java b/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/build/Lifecycle.java index 80322a0230a..3a68b6d99d6 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/build/Lifecycle.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/build/Lifecycle.java @@ -323,7 +323,7 @@ class Lifecycle implements Closeable { try { FileSystemUtils.deleteRecursively(Path.of(bind.getSource())); } - catch (IOException ex) { + catch (Exception ex) { this.log.failedCleaningWorkDir(bind, ex); } }