[evolution-data-server] Bug #580212 - Report errors in CamelException when verifying signature
- From: Milan Crha <mcrha src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution-data-server] Bug #580212 - Report errors in CamelException when verifying signature
- Date: Mon, 1 Jun 2009 13:01:28 -0400 (EDT)
commit 814cea20fc405e282b8c3be6f9f17bf81d904f5e
Author: Milan Crha <mcrha redhat com>
Date: Mon Jun 1 18:59:40 2009 +0200
Bug #580212 - Report errors in CamelException when verifying signature
---
camel/camel-gpg-context.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/camel/camel-gpg-context.c b/camel/camel-gpg-context.c
index 951e130..dba2384 100644
--- a/camel/camel-gpg-context.c
+++ b/camel/camel-gpg-context.c
@@ -1559,7 +1559,16 @@ gpg_verify (CamelCipherContext *context, CamelMimePart *ipart, CamelException *e
goto exception;
}
- gpg_ctx_op_wait (gpg);
+ if (gpg_ctx_op_wait (gpg) != 0) {
+ const gchar *diagnostics;
+
+ diagnostics = gpg_ctx_get_diagnostics (gpg);
+ camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM,
+ diagnostics && *diagnostics ? diagnostics :
+ _("Failed to execute gpg."));
+ goto exception;
+ }
+
validity = camel_cipher_validity_new ();
diagnostics = gpg_ctx_get_diagnostics (gpg);
camel_cipher_validity_set_description (validity, diagnostics);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]