From 0dc00367f91d871949d13ea85c181c16f124bfd0 Mon Sep 17 00:00:00 2001 From: joshr Date: Mon, 16 Apr 2018 21:58:32 -0400 Subject: [PATCH] improve message when .git exists but not .gitsecret --- src/_utils/_git_secret_tools.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/_utils/_git_secret_tools.sh b/src/_utils/_git_secret_tools.sh index 7dee588b..cf4f7341 100644 --- a/src/_utils/_git_secret_tools.sh +++ b/src/_utils/_git_secret_tools.sh @@ -484,7 +484,9 @@ function _secrets_dir_exists { full_path=$(_get_secrets_dir) if [[ ! -d "$full_path" ]]; then - _abort "$full_path does not exist." + local name + name=$(basename "$full_path") + _abort "secrets directory '$name' does not exist. Use 'git secret init' to initialize git-secret" fi }