send stat error, not readdir error

This commit is contained in:
AJ ONeal 2015-01-05 18:17:56 -07:00
parent 767a684da1
commit 24d237ae74
2 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@
files = [me._wcurpath];
me._wcurpath = me._wcurpath.replace(files[0], '');
} else {
me.emit('nodeError', me._wcurpath, { error: err }, noop);
me.emit('nodeError', me._wcurpath, { error: e }, noop);
}
me._wReadFiles();

View File

@ -17,7 +17,7 @@
},
"lib": ".",
"main": "./lib/walk.js",
"version": "2.3.6",
"version": "2.3.7",
"repository": {
"url": "git://github.com/coolaj86/node-walk.git"
},