From 61679f6290aaf7526b3c1d69f016ffbda69e4a58 Mon Sep 17 00:00:00 2001 From: felmer <felmer> Date: Tue, 22 Jan 2013 15:04:54 +0000 Subject: [PATCH] SP-464, BIS-255: Add more info to exception if FileUtilities.getSizeOf() failed. SVN: 28153 --- .../ch/systemsx/cisd/common/filesystem/FileUtilities.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/source/java/ch/systemsx/cisd/common/filesystem/FileUtilities.java b/common/source/java/ch/systemsx/cisd/common/filesystem/FileUtilities.java index 1b40978ad4f..1a51fff8741 100644 --- a/common/source/java/ch/systemsx/cisd/common/filesystem/FileUtilities.java +++ b/common/source/java/ch/systemsx/cisd/common/filesystem/FileUtilities.java @@ -2322,7 +2322,10 @@ public final class FileUtilities throw CheckedExceptionTunnel.wrapIfNecessary(exception); } throw new EnvironmentFailureException("The size of the folder '" + file - + "' couldn't be determined: " + result.getErrorOutput()); + + "' couldn't be determined:\n command: " + result.getCommandName() + + "\n commad line arguments: " + result.getCommandLine() + + "\n output: " + result.getOutput() + + "\n error output: "+ result.getErrorOutput()); } return FileUtils.sizeOfDirectory(file); } -- GitLab