From 660a608e0ccdaa264d537368716613477b4bfc2f Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 13 Sep 2012 09:39:27 -0400 Subject: [PATCH] minor changes --- lib/server/appcache.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/server/appcache.js b/lib/server/appcache.js index 74a30530..09aee315 100644 --- a/lib/server/appcache.js +++ b/lib/server/appcache.js @@ -29,7 +29,9 @@ exports.watch = function(pFileName){ console.log(pFileName + ' is watched'); if(!FileNames[pFileName]){ - fs_watch(pFileName, on_fs_watch(pFileName)); + try{ + fs_watch(pFileName, on_fs_watch(pFileName)); + }catch(pError){} NamesList_s += pFileName + '\n'; FileNames[pFileName] = true;