Skip to content

Commit 69a23f2

Browse files
committed
🐛 Fix: wrong git commit error message
1 parent 23b6668 commit 69a23f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/cli.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ inquirer.prompt(questionsList).then((answers) => {
1414

1515
return execa('git', ['commit', '-m', message])
1616
.then(result => console.log(result.stdout))
17-
.catch((err) => {
17+
.catch(() => {
18+
console.log();
1819
console.error(chalk.red("Have you thought about 'git add' some files? Add files and try run following again:\n"));
19-
console.error(chalk.green(err.cmd));
20+
console.error(chalk.green(`git commit -m "${message}"`));
2021
});
2122
});

0 commit comments

Comments
 (0)