Revert "dump_errors() should tell you about unknown errors"

This reverts commit 5db152b103.
This commit is contained in:
Paul Guenette
2019-12-03 22:58:47 -05:00
committed by Unknown
parent 3e4c13128e
commit fa0180a601
+2 -6
View File
@@ -53,12 +53,8 @@ def dump_errors(odrv, clear=False):
print(prefix + _VT100Colors['red'] + "Error(s):" + _VT100Colors['default'])
errorcodes_tup = [(name, val) for name, val in errorcodes.__dict__.items() if 'ERROR_' in name]
for codename, codeval in errorcodes_tup:
if remote_obj.error:
print(" ", end='')
if codeval != 0:
print(codename)
else:
print("UNKNOWN_ERROR!")
if remote_obj.error & codeval != 0:
print(" " + codename)
if clear:
remote_obj.error = errorcodes.ERROR_NONE
else: