aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrhatto <rhatto@ratatosk.fluxo.info>2014-04-06 20:04:20 -0300
committerrhatto <rhatto@ratatosk.fluxo.info>2014-04-06 20:04:20 -0300
commit23f21f59d9075f36c273e48f8f993a8018cec102 (patch)
tree92bf9bbd2847d42ef7208ab25320be8c46ed9f3f /lib
parent549fffc68213d9c960e2de61b294dd90f96263c4 (diff)
downloadkeyringer-23f21f59d9075f36c273e48f8f993a8018cec102.tar.gz
keyringer-23f21f59d9075f36c273e48f8f993a8018cec102.tar.bz2
Be more verbose on recrypt errors
Diffstat (limited to 'lib')
-rwxr-xr-xlib/keyringer/actions/recrypt4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/keyringer/actions/recrypt b/lib/keyringer/actions/recrypt
index 696399b..d374308 100755
--- a/lib/keyringer/actions/recrypt
+++ b/lib/keyringer/actions/recrypt
@@ -19,7 +19,7 @@ function keyringer_recrypt {
decrypted="$($GPG --use-agent -d "$KEYDIR/$FILE" 2> /dev/null)"
if [ "$?" != "0" ]; then
- echo "Decryption error."
+ echo "Decryption error on $1."
exit 1
fi
@@ -27,7 +27,7 @@ function keyringer_recrypt {
recrypted="`echo "$decrypted" | $GPG --use-agent --armor -e -s $(keyringer_recipients "$RECIPIENTS_FILE")`"
if [ "$?" != "0" ]; then
- echo "Recryption error."
+ echo "Recryption error on $1."
exit 1
fi