diff --git a/git_util.js b/git_util.js index 31b13e2..a377535 100644 --- a/git_util.js +++ b/git_util.js @@ -6,19 +6,22 @@ module.exports = { exec('git add .', function (error, stdout, stderr) { if (error) { reject(error); - throw error; + console.log(error); + return; } console.log("git commit -m '" + msg + "'"); exec("git commit -m '" + msg + "'", function (error, stdout, stderr) { if (error) { reject(error); - throw error; + console.log(error); + return; } console.log("git push " + origin + " " + banch); exec("git push " + origin + " " + banch, function (error, stdout, stderr) { if (error) { reject(error); - throw error; + console.log(error); + return; } resolve(); }) @@ -30,12 +33,14 @@ module.exports = { exec("git commit -m '" + msg + "'", function (error, stdout, stderr) { if (error) { reject(error); - throw error; + console.log(error); + return; } exec("git push " + origin + " " + banch, function (error, stdout, stderr) { if (error) { reject(error); - throw error; + console.log(error); + return; } resolve(); }) @@ -45,7 +50,8 @@ module.exports = { exec("git push " + origin + " " + banch, function (error, stdout, stderr) { if (error) { reject(error); - throw error; + console.log(error); + return; } resolve(); })