Better error message when pgp public key not found.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 19 May 2009 10:40:35 +0000 (04:40 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 19 May 2009 10:42:31 +0000 (04:42 -0600)
imp/lib/Crypt/Pgp.php

index 89f89de..6cb1299 100644 (file)
@@ -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