From 3ce29ef97fa73c37eb33c42fd611dc9ea6ef35b8 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 11 Jun 2015 20:33:57 +0300 Subject: [PATCH] Add details about error --- update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update b/update index 552c1e5..c253c7f 100755 --- a/update +++ b/update @@ -5,13 +5,13 @@ origin="`git config --get --path remote.origin.url`" if [ -n "$origin" ]; then if [ -n "$current" ]; then - echo "UNKNOWN ERROR" + echo "UNKNOWN ERROR (both origin and current)" else echo "This script must be run in the origin directory: $origin" fi >&2 exit 1 elif [ -z "$current" ]; then - echo "UNKNOWN ERROR" >&2 + echo "UNKNOWN ERROR (neither origin nor current)" >&2 exit 1 fi -- 2.39.5