aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-gpg-context.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-gpg-context.c')
-rw-r--r--camel/camel-gpg-context.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/camel/camel-gpg-context.c b/camel/camel-gpg-context.c
index 124182b955..1c7daaa72b 100644
--- a/camel/camel-gpg-context.c
+++ b/camel/camel-gpg-context.c
@@ -780,6 +780,11 @@ gpg_ctx_parse_status (struct _GpgCtx *gpg, CamelException *ex)
_("Unexpected response from GnuPG: %s"),
status + 11);
return -1;
+ } else if (!strncmp (status, "NODATA", 6)) {
+ /* this is an error */
+ camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM,
+ _("No data provided"));
+ return -1;
} else {
/* check to see if we are complete */
switch (gpg->mode) {