diff options
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/bootstrap/TempFolderProvider.java | 4 | ||||
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/utils/internal/DefaultTempFolder.java | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/TempFolderProvider.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/TempFolderProvider.java index 4ca4fe75dcb..686b37a591a 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/TempFolderProvider.java +++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/TempFolderProvider.java @@ -80,13 +80,13 @@ public class TempFolderProvider extends LifecycleProviderAdapter { try { Files.createDirectories(workingPath); } catch (IOException e) { - throw new IllegalStateException("Failed to create working path: " + workingPath); + throw new IllegalStateException("Failed to create working path: " + workingPath, e); } try { return Files.createTempDirectory(workingPath, TMP_NAME_PREFIX); } catch (IOException e) { - throw new IllegalStateException("Failed to create temporary folder in " + workingPath); + throw new IllegalStateException("Failed to create temporary folder in " + workingPath, e); } } diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/internal/DefaultTempFolder.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/internal/DefaultTempFolder.java index cd76c8f8e80..6e18116af53 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/internal/DefaultTempFolder.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/internal/DefaultTempFolder.java @@ -52,7 +52,7 @@ public class DefaultTempFolder implements TempFolder { try { return Files.createTempDirectory(baseDir, null); } catch (IOException e) { - throw new IllegalStateException("Failed to create temp directory"); + throw new IllegalStateException("Failed to create temp directory", e); } } |