- store error text into exception

git-svn-id: http://moon:8086/svn/projects/HendiControl@368 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
2020-04-19 19:00:58 +00:00
parent 8dd62c0251
commit 63bd991cb2
+1 -1
View File
@@ -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]