From: Michael M Slusarz Date: Tue, 19 May 2009 10:40:35 +0000 (-0600) Subject: Better error message when pgp public key not found. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a5d3c0d2c0e2f24b7bd220b70d9c63fb74efff15;p=horde.git Better error message when pgp public key not found. --- 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