More informative error message. Fixes #638
This commit is contained in:
parent
70e279afde
commit
28c1c0dfb4
|
@ -131,7 +131,10 @@ class INotify(object):
|
||||||
def handle_error(self):
|
def handle_error(self):
|
||||||
import ctypes
|
import ctypes
|
||||||
eno = ctypes.get_errno()
|
eno = ctypes.get_errno()
|
||||||
raise OSError(eno, self.os.strerror(eno))
|
extra = ''
|
||||||
|
if eno == errno.ENOSPC:
|
||||||
|
extra = 'You may need to increase the inotify limits on your system, via /proc/sys/inotify/max_user_*'
|
||||||
|
raise OSError(eno, self.os.strerror(eno) + extra)
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
# This method can be called during interpreter shutdown, which means we
|
# This method can be called during interpreter shutdown, which means we
|
||||||
|
|
Loading…
Reference in New Issue