[Fix] Fixed log output of SetActionTo* commands

This commit is contained in:
Robert von Burg 2018-08-27 10:21:35 +02:00
parent 844bb670b4
commit bce72f76f6
3 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ public class SetActionToExecutedCommand extends ExecutionCommand {
tx().lock(this.action.getRootElement());
if (!this.action.getState().canSetToExecuted()) {
String msg = "State {0} and canot be changed to {1} for action {2}";
String msg = "Current state is {0} canot be changed to {1} for action {2}";
msg = MessageFormat.format(msg, this.action.getState(), State.EXECUTED, this.action.getLocator());
throw new StrolchException(msg);
}

View File

@ -29,7 +29,7 @@ public class SetActionToStoppedCommand extends ExecutionCommand {
tx().lock(this.action.getRootElement());
if (!this.action.getState().canSetToStopped()) {
String msg = "State {0} and canot be changed to {1} for action {2}";
String msg = "Current state is {0} and canot be changed to {1} for action {2}";
msg = MessageFormat.format(msg, this.action.getState(), State.STOPPED, this.action.getLocator());
throw new StrolchException(msg);
}

View File

@ -29,7 +29,7 @@ public class SetActionToWarningCommand extends ExecutionCommand {
tx().lock(this.action.getRootElement());
if (!this.action.getState().canSetToWarning()) {
String msg = "State {0} and canot be changed to {1} for action {2}";
String msg = "Current state is {0} and canot be changed to {1} for action {2}";
msg = MessageFormat.format(msg, this.action.getState(), State.WARNING, this.action.getLocator());
throw new StrolchException(msg);
}