From a2fad3293dbef010dc7ba0832d74387adca1a331 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Thu, 20 Jul 2017 13:07:56 +0200 Subject: [PATCH] Fix adding pump state to CommandResult when there are violations. --- app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java b/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java index 1f14c20965..595f44efe5 100644 --- a/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java +++ b/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java @@ -168,7 +168,7 @@ public class RuffyScripter { List 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) {