Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1082 from zoranzaric/fix-1008

Catch errors while walking the filesystem
  • Loading branch information...
commit 90407ed46f1816b551b5cc854c399b5219202cc1 2 parents a908cdf + 1fc3a02
@ibdknox ibdknox authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 deploy/core/node_modules/lighttable/background/walkdir2.js
View
7 deploy/core/node_modules/lighttable/background/walkdir2.js
@@ -26,7 +26,12 @@ var walk = function(path,options){
while(cur = queue.shift()) {
- children = fs.readdirSync(cur);
+ try {
+ children = fs.readdirSync(cur);
+ } catch(e) {
+ console.error("Couldn't read dir " + cur);
+ continue;
+ }
for(var i = 0; i < children.length; i++) {
basename = children[i];
Please sign in to comment.
Something went wrong with that request. Please try again.