Open bowlofeggs opened 5 years ago
That would indeed be great! It might be difficult, though, because we don't have path information in the underlying error. All we have is that it was EPERM.
To do this, I think we'd need to special-case error handing in bind/connect and re-raise a new error:
# pseudo-ish code
try:
...
except ZMError as e:
if EPERM and url.startswith('ipc://'):
raise ZMQError(EPERM, message=message_with_url)
Greetings!
I recently received this traceback:
It turned out that it was unable to create
/var/run/fedmsg/monitoring-fedmsg-hub.socket
, but it would have made debugging easier for me if it had told me that along with theZMQError
.Could we make it so that the error includes info about what it was getting permission denied on? Something like this would have been helpful:
Thanks!