This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Console Error when rmdir Fails

  • Loading branch information...
bencevans committed Oct 7, 2012
1 parent 51515b4 commit 87c092f9a079505220b84c61934456937c26df1c
Showing with 3 additions and 1 deletion.
  1. +3 −1 app.js
View
4 app.js
@@ -57,7 +57,9 @@ var server = http.createServer(function (req, res) {
res.end(template(locals));
setInterval(function() {
- wrench.rmdirRecursive(path);
+ wrench.rmdirRecursive(path, function(err){
+ if(err) return console.error(err);
+ });
}, 900);
});

0 comments on commit 87c092f

Please sign in to comment.