- 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:
@@ -114,7 +114,7 @@ class HendiCtrl():
|
|||||||
self.__write(req)
|
self.__write(req)
|
||||||
rsp = self.__read()
|
rsp = self.__read()
|
||||||
if "OK" not in rsp[0]:
|
if "OK" not in rsp[0]:
|
||||||
raise Exception("Command not accepted")
|
raise Exception("Command not accepted ({})".format(rsp[1]))
|
||||||
|
|
||||||
return rsp[1]
|
return rsp[1]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user