Browse Source

fs: fix fs.realpath on windows to return on error

v0.7.4-release
Benjamin Pasero 14 years ago
committed by Ben Noordhuis
parent
commit
b1bb17fd2b
  1. 2
      lib/fs.js

2
lib/fs.js

@ -775,7 +775,7 @@ if (isWindows) {
return cb(null, cache[p]);
}
fs.stat(p, function(err) {
if (err) cb(err);
if (err) return cb(err);
if (cache) cache[p] = p;
cb(null, p);
});

Loading…
Cancel
Save