mirror of
https://github.com/powerline/powerline.git
synced 2025-04-08 19:25:04 +02:00
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):
|
||||
import ctypes
|
||||
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):
|
||||
# This method can be called during interpreter shutdown, which means we
|
||||
|
Loading…
x
Reference in New Issue
Block a user