diff --git a/src/index.js b/src/index.js index e8869d5..924cb64 100644 --- a/src/index.js +++ b/src/index.js @@ -2,7 +2,7 @@ * Author : OBKoro1 * Date : 2019-12-19 20:23:57 * LastEditors : OBKoro1 - * LastEditTime : 2019-12-20 11:26:24 + * LastEditTime : 2019-12-20 11:27:13 * FilePath : /autoCommit/index.js * Description : 自动commit * https://github.com/OBKoro1 @@ -40,7 +40,7 @@ class autoCommit { }); return res; } catch (err) { - console.log(err) + console.log(err.message) console.log(`执行命令出错:${cmd}`); } } diff --git a/test.md b/test.md index f3ece57..dd12eb5 100644 --- a/test.md +++ b/test.md @@ -1 +1 @@ -20/12/2019 11:12:27 \ No newline at end of file +20/12/2019 11:12:19 \ No newline at end of file