From 63bd991cb27e67b1ec6c60c12723373bb4a6152e Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Sun, 19 Apr 2020 19:00:58 +0000 Subject: [PATCH] - store error text into exception git-svn-id: http://moon:8086/svn/projects/HendiControl@368 fda53097-d464-4ada-af97-ba876c37ca34 --- Control/brewpi/hendiCtrl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Control/brewpi/hendiCtrl.py b/Control/brewpi/hendiCtrl.py index 6527c31..60b880c 100644 --- a/Control/brewpi/hendiCtrl.py +++ b/Control/brewpi/hendiCtrl.py @@ -114,7 +114,7 @@ class HendiCtrl(): self.__write(req) rsp = self.__read() if "OK" not in rsp[0]: - raise Exception("Command not accepted") + raise Exception("Command not accepted ({})".format(rsp[1])) return rsp[1]