mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +00:00
Amend affluent error handling
Be more consistent and informative
This commit is contained in:
parent
d82a982857
commit
fb10221e1b
@ -46,7 +46,13 @@ class WebClient(object):
|
||||
'pubkeys.tls_hardwaremanager attribute'))
|
||||
return {}
|
||||
except (socket.gaierror, socket.herror, TimeoutError) as e:
|
||||
results.put(msg.ConfluentTargetTimeout(e.strerror))
|
||||
results.put(msg.ConfluentTargetTimeout(self.node, str(e)))
|
||||
return {}
|
||||
except OSError as e:
|
||||
if e.errno == 113:
|
||||
results.put(msg.ConfluentTargetTimeout(self.node))
|
||||
else:
|
||||
results.put(msg.ConfluentTargetTimeout(self.node), str(e))
|
||||
return {}
|
||||
except Exception as e:
|
||||
results.put(msg.ConfluentNodeError(self.node,
|
||||
|
Loading…
Reference in New Issue
Block a user