From 12c34ce569823cbf3dc3822afa7318fcc49847d0 Mon Sep 17 00:00:00 2001 From: Colin Kelley Date: Wed, 18 Aug 2021 21:37:41 -0700 Subject: [PATCH] issue #509: simplify INotifyMaxWatchesExceeded message --- lib/listen/adapter/linux.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/listen/adapter/linux.rb b/lib/listen/adapter/linux.rb index 26d1ddff..32be05f4 100644 --- a/lib/listen/adapter/linux.rb +++ b/lib/listen/adapter/linux.rb @@ -30,8 +30,7 @@ def _configure(directory, &callback) @worker.watch(directory.to_s, *options.events, &callback) rescue Errno::ENOSPC raise ::Listen::Error::INotifyMaxWatchesExceeded, <<~EOS - FATAL: Listen error: Unable to monitor directories for changes because iNotify max watches exceeded. - Visit #{README_URL} for info on how to fix this. + Unable to monitor directories for changes because iNotify max watches exceeded. See #{README_URL} . EOS end