diff options
author | Robin Jarry <robin@jarry.cc> | 2022-05-10 09:31:10 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-05-10 14:50:55 +0200 |
commit | 321593d1385dce4ad35e8ad5b2fe88e5c77761cd (patch) | |
tree | 6b155f61f41b72f2429ed760a2e779d035ac618f /lib/crypto/gpg/gpgbin | |
parent | b65f5649c853badcf8dad6b7be06cafed0ed70c0 (diff) | |
download | aerc-321593d1385dce4ad35e8ad5b2fe88e5c77761cd.tar.gz |
gpg: do not mask errors
Report errors as they are printed by gpg.
Signed-off-by: Robin Jarry <robin@jarry.cc>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'lib/crypto/gpg/gpgbin')
-rw-r--r-- | lib/crypto/gpg/gpgbin/gpgbin.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/gpg/gpgbin/gpgbin.go b/lib/crypto/gpg/gpgbin/gpgbin.go index 3ee81399..bce30970 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: |