From 23b60dc1975db38c280d8a123aff97544d1673e0 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期四, 09 六月 2022 15:34:21 +0800
Subject: [PATCH] TODO#139890 FAQ 常見問題 1-文案調整

---
 PAMapp/node_modules/chokidar/lib/nodefs-handler.js |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/PAMapp/node_modules/chokidar/lib/nodefs-handler.js b/PAMapp/node_modules/chokidar/lib/nodefs-handler.js
index 3a39643..199cfe9 100644
--- a/PAMapp/node_modules/chokidar/lib/nodefs-handler.js
+++ b/PAMapp/node_modules/chokidar/lib/nodefs-handler.js
@@ -421,7 +421,15 @@
   if (!this.fsw.options.followSymlinks) {
     // watch symlink directly (don't follow) and detect changes
     this.fsw._incrReadyCount();
-    const linkPath = await fsrealpath(path);
+
+    let linkPath;
+    try {
+      linkPath = await fsrealpath(path);
+    } catch (e) {
+      this.fsw._emitReady();
+      return true;
+    }
+
     if (this.fsw.closed) return;
     if (dir.has(item)) {
       if (this.fsw._symlinkPaths.get(full) !== linkPath) {

--
Gitblit v1.8.0