From e9679669724e33650576199748202ab8d758cdf1 Mon Sep 17 00:00:00 2001
From: JPeer264 <jan.oster94@gmail.com>
Date: Sat, 15 Apr 2017 12:51:18 +0200
Subject: [PATCH] :bug: Fix: change error message, and add stdio for a better
 output (fixes #21)

---
 lib/cli.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/cli.js b/lib/cli.js
index a45ab54..c5b7cd2 100755
--- a/lib/cli.js
+++ b/lib/cli.js
@@ -31,10 +31,9 @@ if (argv.v) {
   inquirer.prompt(questionsList).then((answers) => {
     const message = answers.moreInfo ? `${answers.editor}` : `${answers.type} ${answers.description}`;
 
-    return execa('git', ['commit', '-m', message])
-      .then(result => console.log(result.stdout))
+    return execa('git', ['commit', '-m', message], { stdio: 'inherit' })
       .catch(() => {
-        console.error(chalk.red("Have you thought about 'git add' some files? Add files and try run following again:\n"));
+        console.error(chalk.red('\nAn error occured. Try to resolve the previous error and run following commit message again:'));
         console.error(chalk.green(`git commit -m "${message}"`));
       });
   });