From ccc7137e3181ded6d3084c8c471a3db6ec586c07 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 26 May 2016 10:56:46 +0300 Subject: [PATCH] Refine error messages --- update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update b/update index 2e0aa78..17d6cf2 100755 --- 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 -- 2.39.2