Improve display of error state in Combo tab.

This commit is contained in:
Johannes Mockenhaupt 2017-07-17 16:52:14 +02:00
parent 7fa59c6c16
commit 222ad0a527
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -365,7 +365,7 @@ public class ComboPlugin implements PluginBase, PumpInterface {
statusSummary = "Idle";
pumpState = commandResult.state;
} else {
statusSummary = "Command failed: " + command;
statusSummary = "Error";
pumpState = new PumpState();
pumpState.errorMsg = commandResult.message != null
? commandResult.message