From 8e980d9f185fe0df870ead35fc330c8e52def8dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 29 Mar 2021 15:54:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Process/ServerInotify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index 017650bc..e439f6c5 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -272,7 +272,7 @@ class ServerInotify extends Process { //目录不存在 if (!is_dir($dir)) { - throw new Exception("[$dir] is not a directory."); + return $this->application->addError("[$dir] is not a directory."); } //避免重复监听 if (isset($this->watchFiles[$dir])) {