diff --git a/lib/copy.js b/lib/copy.js index 076f380a..7a29f3ec 100644 --- a/lib/copy.js +++ b/lib/copy.js @@ -35,7 +35,7 @@ function copy(src, dest, filter, callback) { callback = callback || function(){} fs.lstat(src, function(err, stats) { - if (err) callback(err) + if (err) return callback(err) var dir = null if (stats.isDirectory()) {