summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-05-10 09:31:10 +0200
committerRobin Jarry <robin@jarry.cc>2022-05-10 14:50:55 +0200
commit321593d1385dce4ad35e8ad5b2fe88e5c77761cd (patch)
tree6b155f61f41b72f2429ed760a2e779d035ac618f
parentb65f5649c853badcf8dad6b7be06cafed0ed70c0 (diff)
downloadaerc-321593d1385dce4ad35e8ad5b2fe88e5c77761cd.zip
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>
-rw-r--r--lib/crypto/gpg/gpgbin/gpgbin.go2
1 files changed, 1 insertions, 1 deletions
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: