git 2 年之前
父节点
当前提交
1588fee46d
共有 1 个文件被更改,包括 2 次插入1 次删除
  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());
                                          }