[Fix] Fixed log output of SetActionTo* commands
This commit is contained in:
parent
844bb670b4
commit
bce72f76f6
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue