From dbb65bbf7f890fb98e122b4b634565cab2f0864b Mon Sep 17 00:00:00 2001 From: fkrone Date: Mon, 16 Mar 2015 14:58:01 +0100 Subject: [PATCH] Bugfix: Missed return code for failed PGP encryption in log message --- gpg-mailgate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpg-mailgate.py b/gpg-mailgate.py index 09755bd..766d473 100755 --- a/gpg-mailgate.py +++ b/gpg-mailgate.py @@ -215,7 +215,7 @@ def encrypt_payload( payload, gpg_to_cmdline ): if verbose: log("Return code from encryption=%d (0 indicates success)." % returncode) if returncode != 0: - log("Encrytion failed with return code %d. Encryption aborted.") + log("Encrytion failed with return code %d. Encryption aborted." % returncode) return payload payload.set_payload( encrypted_data )