]> git.phdru.name Git - git-scripts.git/commitdiff
Add details about error
authorOleg Broytman <phd@phdru.name>
Thu, 11 Jun 2015 17:33:57 +0000 (20:33 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 11 Jun 2015 17:33:57 +0000 (20:33 +0300)
update

diff --git a/update b/update
index 552c1e550e4cd9678e90f44e28b7295389670b41..c253c7f83c01fe571eda8998f0fee7ad5aaf84c8 100755 (executable)
--- 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