aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/gpg/gpgbin
diff options
context:
space:
mode:
Diffstat (limited to 'lib/crypto/gpg/gpgbin')
-rw-r--r--lib/crypto/gpg/gpgbin/decrypt.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/crypto/gpg/gpgbin/decrypt.go b/lib/crypto/gpg/gpgbin/decrypt.go
index 4b8d8f2b..fd11b755 100644
--- a/lib/crypto/gpg/gpgbin/decrypt.go
+++ b/lib/crypto/gpg/gpgbin/decrypt.go
@@ -26,6 +26,7 @@ func Decrypt(r io.Reader) (*models.MessageDetails, error) {
md.Body = bytes.NewReader(orig)
return md, nil
default:
+ return nil, err
}
}
outRdr := bytes.NewReader(g.stdout.Bytes())