better error messages

pull/151/head
joshr 6 years ago
parent d216f91bd7
commit a4a8ea62ed

@ -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
}

@ -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:

Loading…
Cancel
Save