diff options
author | Benjamin Pasero <benjamin.pasero@gmail.com> | 2011-11-08 11:17:33 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2011-11-08 13:02:04 +0100 |
commit | b1bb17fd2b432144045799950f49a6b52c6c53c0 (patch) | |
tree | 8a54e0daeb6305ff48b59979b499581746c3923f /lib | |
parent | 04958e88a41e1b1324f3684674f5f662486cc094 (diff) | |
download | node-new-b1bb17fd2b432144045799950f49a6b52c6c53c0.tar.gz |
fs: fix fs.realpath on windows to return on error
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fs.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); }); |