aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index ef30c38ec4..6f4348bd0f 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -700,13 +700,15 @@ build_message (EMsgComposer *composer, gboolean save_html_object_data)
if (composer->smime_sign
&& (hdrs->account == NULL || hdrs->account->smime_sign_key == NULL || hdrs->account->smime_sign_key[0] == 0)) {
- camel_exception_setv(&ex, 1, _("Cannot sign outgoing message: No signing certificate set for this account"));
+ camel_exception_set (&ex, CAMEL_EXCEPTION_SYSTEM,
+ _("Cannot sign outgoing message: No signing certificate set for this account"));
goto exception;
}
-
+
if (composer->smime_encrypt
&& (hdrs->account == NULL || hdrs->account->smime_sign_key == NULL || hdrs->account->smime_sign_key[0] == 0)) {
- camel_exception_setv(&ex, 1, _("Cannot encrypt outgoing message: No encryption certificate set for this account"));
+ camel_exception_set (&ex, CAMEL_EXCEPTION_SYSTEM,
+ _("Cannot encrypt outgoing message: No encryption certificate set for this account"));
goto exception;
}