Log exception

This commit is contained in:
Johannes Mockenhaupt 2017-07-18 02:10:31 +02:00
parent ebe14fb0cf
commit abf9566476
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -222,6 +222,7 @@ public class RuffyScripter {
} catch (CommandException e) {
returnable.cmdResult = e.toCommandResult();
} catch (Exception e) {
log.error("Unexpected exception running cmd", e);
returnable.cmdResult = new CommandResult().exception(e).message("Unexpected exception running cmd");
} finally {
lastCmdExecutionTime = System.currentTimeMillis();