From a4a8ea62ed74b954e674c5fc347ee4b4b738222f Mon Sep 17 00:00:00 2001 From: joshr Date: Mon, 16 Apr 2018 21:50:28 -0400 Subject: [PATCH] better error messages --- src/_utils/_git_secret_tools.sh | 2 +- src/main.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_utils/_git_secret_tools.sh b/src/_utils/_git_secret_tools.sh index 1e1a38b2..7dee588b 100644 --- a/src/_utils/_git_secret_tools.sh +++ b/src/_utils/_git_secret_tools.sh @@ -424,7 +424,7 @@ function _get_gpg_local { function _abort { local message="$1" # required - >&2 echo "$message abort." + >&2 echo "git-secret: abort: $message" exit 1 } diff --git a/src/main.sh b/src/main.sh index f4f52eaf..c9f21e3a 100755 --- a/src/main.sh +++ b/src/main.sh @@ -7,7 +7,7 @@ function _check_setup { local is_tree is_tree=$(_is_inside_git_tree) if [[ "$is_tree" -ne 0 ]]; then - _abort "repository is broken. try running 'git init' or 'git clone'." + _abort "Not in dir with git repo. Use 'git init' or 'git clone', then in repo use 'git secret init'" fi # Checking if the '.gitsecret' is not ignored: