Skip to content
Snippets Groups Projects
Commit 7fb5ac7c authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Improve error message for when adding inotify watcher fails


Explicitely mention the fs.inotify.max_user_watches sysctl value.

Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 6bee863c
No related merge requests found
......@@ -109,7 +109,9 @@ class FileEventHandlerBase(pyinotify.ProcessEvent):
ret = result.get(filename, -1)
if ret <= 0:
raise errors.InotifyError("Could not add inotify watcher (%s)" % ret)
raise errors.InotifyError("Could not add inotify watcher (error code %s);"
" increasing fs.inotify.max_user_watches sysctl"
" might be necessary" % ret)
return result[filename]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment