Fix adding pump state to CommandResult when there are violations.
This commit is contained in:
parent
d85425e68b
commit
a2fad3293d
|
@ -168,7 +168,7 @@ public class RuffyScripter {
|
|||
|
||||
List<String> violations = cmd.validateArguments();
|
||||
if (!violations.isEmpty()) {
|
||||
return new CommandResult().message(Joiner.on("\n").join(violations));
|
||||
return new CommandResult().message(Joiner.on("\n").join(violations)).state(readPumpState());
|
||||
}
|
||||
|
||||
synchronized (RuffyScripter.class) {
|
||||
|
|
Loading…
Reference in a new issue