Commit 781bc114 authored by Denis Bilenko's avatar Denis Bilenko

core: give more info about failed event_add call

parent f90984b8
......@@ -253,7 +253,7 @@ cdef class event:
if errno:
raise IOError(errno, strerror(errno))
else:
raise IOError("event_add failed. bad filedescriptor?")
raise IOError("event_add(fileno=%s) returned %s" % (self.fd, result))
def cancel(self):
"""Remove event from the event queue."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment