From ca52ca01f27b6ab6ccff2ab8a18c2c8171495ca5 Mon Sep 17 00:00:00 2001 From: Artem Sapegin Date: Fri, 23 Feb 2018 10:03:53 +0100 Subject: [PATCH] More readable error output in push --- push | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/push b/push index 52fa0b1..e950bcb 100755 --- a/push +++ b/push @@ -30,7 +30,7 @@ push=$(git push --set-upstream $* $remote $remote_branch 2>&1) exit_code=$? if [ $exit_code != 0 ]; then - echo -e "${color_error}Ouch, push failed!${color_reset} code=$exit_code, output=$push" + echo -e "${color_error}Ouch, push failed!${color_reset}\n\n$push" exit $exit_code elif echo $push | grep "Everything up-to-date" >/dev/null; then echo "✌️ Git says everything is up-to-date!"