projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb2ca76
)
Better error message when pgp public key not found.
author
Michael M Slusarz
<slusarz@curecanti.org>
Tue, 19 May 2009 10:40:35 +0000
(
04:40
-0600)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Tue, 19 May 2009 10:42:31 +0000
(
04:42
-0600)
imp/lib/Crypt/Pgp.php
patch
|
blob
|
history
diff --git
a/imp/lib/Crypt/Pgp.php
b/imp/lib/Crypt/Pgp.php
index
89f89de
..
6cb1299
100644
(file)
--- 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