diff --git a/restore.js b/restore.js index 859076c..7864028 100644 --- a/restore.js +++ b/restore.js @@ -14,5 +14,12 @@ exports.crontabs = function(db_name, callback){ }; exports.delete = function(db_name){ - fs.unlink(__dirname + '/crontabs/' + db_name); + fs.unlink(__dirname + '/crontabs/' + db_name, function(err){ + if(err) { + return console.log("Delete error: " + err); + } + else{ + console.log("Backup deleted"); + } + }); };