Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
fs: fix fs.realpath on windows to return on error
  • Loading branch information
bpasero authored and bnoordhuis committed Nov 8, 2011
1 parent 04958e8 commit b1bb17f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fs.js
Expand Up @@ -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);
});
Expand Down

0 comments on commit b1bb17f

Please sign in to comment.