diff --git a/tag.js b/tag.js
index 11788f988db5cdbac45a4d6bff5f8837b46675e0..c2e891570dd8246b62b951069d72faffd6bd81dd 100644
--- a/tag.js
+++ b/tag.js
@@ -1,9 +1,12 @@
-var exec = require("child_process").exec;
+var execSync = require("child_process").execSync;
 function execute(cmd) {
-  exec(cmd, function (error, stdout, stderr) {
+    execSync(cmd, function (error, stdout, stderr) {
     if (error) {
-      console.error(error);
+      console.error("发生错误", error);
       process.exit(1);
+      // throw error;
+    } else {
+      console.log(cmd);
     }
   });
 }
@@ -34,5 +37,4 @@ execute("git merge --no-ff develop");
 execute("git push");
 execute(`git tag -a ${params.tag} -m ${params.m}`);
 execute(`git push --tags `);
-
-console.log("success");
+console.log("还是走了");