diff --git a/lib/fs.js b/lib/fs.js index 46fc5fdae62e7f..3ba9cf73ea5a7b 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -45,8 +45,7 @@ function rethrow() { if (err) { backtrace.stack = err.name + ': ' + err.message + backtrace.stack.substr(backtrace.name.length); - err = backtrace; - throw err; + throw backtrace; } }; }