]> git.phdru.name Git - git-scripts.git/commitdiff
Refine error messages
authorOleg Broytman <phd@phdru.name>
Thu, 26 May 2016 07:56:46 +0000 (10:56 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 26 May 2016 07:56:46 +0000 (10:56 +0300)
update

diff --git a/update b/update
index 2e0aa7843953217b66a23dffddef3dfa47f664d6..17d6cf20571f5c650722b712c31ab9a1260a9c69 100755 (executable)
--- a/update
+++ b/update
@@ -5,14 +5,14 @@ origin="`git config --get --path remote.origin.url`"
 
 if [ -n "$origin" ]; then
    if [ -n "$current" ]; then
-      echo "UNKNOWN ERROR (both origin and current)" >&2
+      echo "Config error (both origin and current)" >&2
       exit 1
    else
       cd "$origin" || exit 1
       exec ./update
    fi
 elif [ -z "$current" ]; then
-   echo "UNKNOWN ERROR (neither origin nor current)" >&2
+   echo "Wrong directory error (neither origin nor current)" >&2
    exit 1
 fi