From 23f21f59d9075f36c273e48f8f993a8018cec102 Mon Sep 17 00:00:00 2001
From: rhatto <rhatto@ratatosk.fluxo.info>
Date: Sun, 6 Apr 2014 20:04:20 -0300
Subject: [PATCH] Be more verbose on recrypt errors

---
 ChangeLog                     | 4 +++-
 lib/keyringer/actions/recrypt | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9c5a05c..8e4d5c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,6 @@
-2014-04-04 - Silvio Rhatto <rhatto@riseup.net>
+2014-04-06 - Silvio Rhatto <rhatto@riseup.net>
+
+	Be more verbose on recrypt errors
 
 	Adding "commit" action which is a wrapper around "git commit"
 
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
 
-- 
GitLab