Skip to content
Snippets Groups Projects
Commit 61679f62 authored by felmer's avatar felmer
Browse files

SP-464, BIS-255: Add more info to exception if FileUtilities.getSizeOf() failed.

SVN: 28153
parent 73260b9d
No related branches found
No related tags found
No related merge requests found
...@@ -2322,7 +2322,10 @@ public final class FileUtilities ...@@ -2322,7 +2322,10 @@ public final class FileUtilities
throw CheckedExceptionTunnel.wrapIfNecessary(exception); throw CheckedExceptionTunnel.wrapIfNecessary(exception);
} }
throw new EnvironmentFailureException("The size of the folder '" + file 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); return FileUtils.sizeOfDirectory(file);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment