diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-09-20 08:37:10 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-09-20 08:37:10 +0800 |
commit | 22e5de292315bdb63c57487f738a1b0aa69ac468 (patch) | |
tree | c141f2cb69fba2fccde160fe802c5384998fb38d /camel/camel-pgp-context.c | |
parent | 0236392122ae7b8671a6e81f91c64f7d851a1694 (diff) | |
download | gsoc2013-evolution-22e5de292315bdb63c57487f738a1b0aa69ac468.tar.gz gsoc2013-evolution-22e5de292315bdb63c57487f738a1b0aa69ac468.tar.zst gsoc2013-evolution-22e5de292315bdb63c57487f738a1b0aa69ac468.zip |
Updated exception strings to be more clear.
2001-09-19 Jeffrey Stedfast <fejj@ximian.com>
* camel-pgp-context.c: Updated exception strings to be more clear.
* camel-pgp-mime.c (pgp_mime_part_sign_restore_part): Stupid
mistake, fixes bug #9975.
svn path=/trunk/; revision=13001
Diffstat (limited to 'camel/camel-pgp-context.c')
-rw-r--r-- | camel/camel-pgp-context.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/camel/camel-pgp-context.c b/camel/camel-pgp-context.c index 13a94b449f..95fafdc652 100644 --- a/camel/camel-pgp-context.c +++ b/camel/camel-pgp-context.c @@ -515,20 +515,20 @@ pgp_sign (CamelCipherContext *ctx, const char *userid, CamelCipherHash hash, if (!plaintext->len) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - _("No plaintext to sign.")); + _("Cannot sign this message: no plaintext to sign")); goto exception; } passphrase = pgp_get_passphrase (ctx->session, context->priv->type, (char *) userid); if (!passphrase) { camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM, - _("No password provided.")); + _("Cannot sign this message: no password provided")); goto exception; } if (pipe (passwd_fds) < 0) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - _("Couldn't create pipe to GPG/PGP: %s"), + _("Cannot sign this message: couldn't create pipe to GPG/PGP: %s"), g_strerror (errno)); goto exception; } @@ -690,20 +690,20 @@ pgp_clearsign (CamelCipherContext *ctx, const char *userid, CamelCipherHash hash if (!plaintext->len) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - _("No plaintext to clearsign.")); + _("Cannot sign this message: no plaintext to clearsign")); goto exception; } passphrase = pgp_get_passphrase (ctx->session, context->priv->type, (char *) userid); if (!passphrase) { camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM, - _("No password provided.")); + _("Cannot sign this message: no password provided")); goto exception; } if (pipe (passwd_fds) < 0) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - _("Couldn't create pipe to GPG/PGP: %s"), + _("Cannot sign this message: couldn't create pipe to GPG/PGP: %s"), g_strerror (errno)); goto exception; } @@ -883,13 +883,13 @@ pgp_verify (CamelCipherContext *ctx, CamelCipherHash hash, CamelStream *istream, if (!plaintext->len) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - _("No plaintext to verify.")); + _("Cannot verify this message: no plaintext to verify")); goto exception; } if (pipe (passwd_fds) < 0) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - _("Couldn't create pipe to GPG/PGP: %s"), + _("Cannot verify this message: couldn't create pipe to GPG/PGP: %s"), g_strerror (errno)); goto exception; } @@ -900,7 +900,7 @@ pgp_verify (CamelCipherContext *ctx, CamelCipherHash hash, CamelStream *istream, sigfile = swrite (sigstream); if (!sigfile) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - _("Couldn't create temp file: %s"), + _("Cannot verify this message: couldn't create temp file: %s"), g_strerror (errno)); goto exception; } @@ -1066,7 +1066,7 @@ pgp_encrypt (CamelCipherContext *ctx, gboolean sign, const char *userid, GPtrArr if (!plaintext->len) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - _("No plaintext to encrypt.")); + _("Cannot encrypt this message: no plaintext to encrypt")); goto exception; } @@ -1076,14 +1076,14 @@ pgp_encrypt (CamelCipherContext *ctx, gboolean sign, const char *userid, GPtrArr (char *) userid); if (!passphrase) { camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM, - _("No password provided.")); + _("Cannot encrypt this message: no password provided")); goto exception; } } if (pipe (passwd_fds) < 0) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - _("Couldn't create pipe to GPG/PGP: %s"), + _("Cannot encrypt this message: couldn't create pipe to GPG/PGP: %s"), g_strerror (errno)); goto exception; @@ -1092,7 +1092,7 @@ pgp_encrypt (CamelCipherContext *ctx, gboolean sign, const char *userid, GPtrArr /* check to make sure we have recipients */ if (recipients->len == 0) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - _("No recipients specified")); + _("Cannot encrypt this message: no recipients specified")); goto exception; } @@ -1255,7 +1255,7 @@ pgp_decrypt (CamelCipherContext *ctx, CamelStream *istream, if (!ciphertext->len) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - _("No ciphertext to decrypt.")); + _("Cannot decrypt this message: no ciphertext to decrypt")); goto exception; } @@ -1263,14 +1263,14 @@ pgp_decrypt (CamelCipherContext *ctx, CamelStream *istream, passphrase = pgp_get_passphrase (ctx->session, context->priv->type, NULL); if (!passphrase) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - _("No password provided.")); + _("Cannot decrypt this message: no password provided")); goto exception; } if (pipe (passwd_fds) < 0) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, - _("Couldn't create pipe to GPG/PGP: %s"), + _("Cannot decrypt this message: couldn't create pipe to GPG/PGP: %s"), g_strerror (errno)); goto exception; |