Improve error logging in InstallCommand
This commit is contained in:
parent
54625cc2a0
commit
eb4aee6c45
|
@ -123,6 +123,10 @@ public class InstallCommand extends OptionParsingCommand {
|
||||||
}
|
}
|
||||||
FileUtils.deleteDirectory(tmpdir.toFile());
|
FileUtils.deleteDirectory(tmpdir.toFile());
|
||||||
}
|
}
|
||||||
|
catch (Exception e) {
|
||||||
|
String message = e.getMessage();
|
||||||
|
Log.error(message != null ? message : e.getClass().toString());
|
||||||
|
}
|
||||||
finally {
|
finally {
|
||||||
if (grapeRoot != null) {
|
if (grapeRoot != null) {
|
||||||
System.setProperty("grape.root", grapeRoot);
|
System.setProperty("grape.root", grapeRoot);
|
||||||
|
|
Loading…
Reference in New Issue