From 321593d1385dce4ad35e8ad5b2fe88e5c77761cd Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Tue, 10 May 2022 09:31:10 +0200 Subject: [PATCH] gpg: do not mask errors Report errors as they are printed by gpg. Signed-off-by: Robin Jarry Acked-by: Tim Culverhouse --- lib/crypto/gpg/gpgbin/gpgbin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crypto/gpg/gpgbin/gpgbin.go b/lib/crypto/gpg/gpgbin/gpgbin.go index 3ee8139..bce3097 100644 --- a/lib/crypto/gpg/gpgbin/gpgbin.go +++ b/lib/crypto/gpg/gpgbin/gpgbin.go @@ -46,7 +46,7 @@ func parseError(s string) error { return errors.New(line) } } - return errors.New("unknown gpg error") + return errors.New(strings.Join(lines, ", ")) } // fields returns the field name from --status-fd output. See: