diff --git a/lib/crypto/gpg/gpgbin/decrypt.go b/lib/crypto/gpg/gpgbin/decrypt.go index 4b8d8f2..fd11b75 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())