changes to templates

This commit is contained in:
Baris Soner Usakli
2014-02-25 14:03:47 -05:00
parent 156c0302c9
commit 7e5a7c53bd
8 changed files with 79 additions and 142 deletions

View File

@@ -310,8 +310,9 @@ var winston = require('winston'),
if(err) {
return callback(err);
}
if (pids.length === 0) {
return callback(new Error('no-undeleted-pids-found'));
return callback(null, null);
}
async.detectSeries(pids, function(pid, next) {
@@ -322,7 +323,7 @@ var winston = require('winston'),
if (pid) {
callback(null, pid);
} else {
callback(new Error('no-undeleted-pids-found'));
callback(null, null);
}
});
});