Improve error logging in InstallCommand

This commit is contained in:
Dave Syer 2014-08-19 07:40:10 +01:00
parent 54625cc2a0
commit eb4aee6c45
1 changed files with 4 additions and 0 deletions

View File

@ -123,6 +123,10 @@ public class InstallCommand extends OptionParsingCommand {
}
FileUtils.deleteDirectory(tmpdir.toFile());
}
catch (Exception e) {
String message = e.getMessage();
Log.error(message != null ? message : e.getClass().toString());
}
finally {
if (grapeRoot != null) {
System.setProperty("grape.root", grapeRoot);