git 2 years ago
parent
commit
1588fee46d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Home/Lib/Action/InotifyMonitor.php

+ 2 - 1
Home/Lib/Action/InotifyMonitor.php

@@ -84,6 +84,7 @@ class InotifyMonitor {
                     DahuaUtil::rlog('已经调用了清理脚本');
                 }catch (Exception $e){
                     DahuaUtil::rlog("redis连接异常".$e->getMessage());
+                    throw new Exception($e->getMessage());
                 }
                
               
@@ -183,7 +184,7 @@ class InotifyMonitor {
                                          }catch(Exception $e)
                                          {
                                             DahuaUtil::rlog("redis数据库连接".$e->getMessage());
-                                            return;
+                                            throw new Exception($e->getMessage());
                                          }