From 3f250ecca3da1e2dcf0a85d788e286a0b7212967 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 16 Apr 2014 14:27:27 +0200 Subject: Better error messages. --- src/password-store.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/password-store.sh b/src/password-store.sh index 8a56afc..082501d 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -52,7 +52,7 @@ set_gpg_recipients() { if [[ ! -f $current ]]; then cat <<-_EOF - ERROR: You must run: + Error: You must run: $PROGRAM init your-gpg-id before you may use the password store. @@ -292,7 +292,7 @@ cmd_find() { fi if ! tree --version | grep -q "Jason A. Donenfeld"; then cat <<-_EOF - ERROR: $PROGRAM: incompatible tree command + Error: incompatible tree command. Your version of the tree command is missing the relevent patch to add the --matchdirs and --caseinsensitive switches. Please ask your distribution @@ -503,7 +503,7 @@ cmd_git() { elif [[ -d $GIT_DIR ]]; then exec git "$@" else - echo "Error: the password store is not a git repository." + echo "Error: the password store is not a git repository. Try \"$PROGRAM git init\"." exit 1 fi } -- cgit v1.2.3