From a5d3c0d2c0e2f24b7bd220b70d9c63fb74efff15 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 19 May 2009 04:40:35 -0600 Subject: [PATCH] Better error message when pgp public key not found. --- imp/lib/Crypt/Pgp.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imp/lib/Crypt/Pgp.php b/imp/lib/Crypt/Pgp.php index 89f89de49..6cb12994d 100644 --- a/imp/lib/Crypt/Pgp.php +++ b/imp/lib/Crypt/Pgp.php @@ -213,7 +213,8 @@ class IMP_Crypt_Pgp extends Horde_Crypt_Pgp /* Return now, if no public key found at all. */ if (is_a($result, 'PEAR_Error')) { - throw new Horde_Exception($result); + Horde::logMessage('PGPpublicKey: ' . $result->getMessage(), __FILE__, __LINE__, PEAR_LOG_DEBUG); + throw new Horde_Exception(sprintf(_("Could not retrieve public key for %s."), $address)); } /* If more than one public key is returned, just return the first in -- 2.11.0