now with errors

This commit is contained in:
Peter Cottle 2013-11-01 18:48:13 -07:00
parent 9a86845ead
commit 625c15d51e
3 changed files with 26 additions and 20 deletions

View file

@ -124,11 +124,17 @@ HeadlessGit.prototype.sendCommand = function(value, entireCommandPromise) {
chain.then(function() {
var nowTime = new Date().getTime();
// .log('done with command "' + value + '", took ', nowTime - startTime);
if (entireCommandPromise) {
entireCommandPromise.resolve();
}
});
chain.fail(function(err) {
console.log('!!!!!!!! error !!!!!!!');
console.log(err);
console.log(err.stack);
console.log('!!!!!!!!!!!!!!!!!!!!!!');
});
deferred.resolve();
};