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>
This commit is contained in:
Robin Jarry 2022-05-10 09:31:10 +02:00
parent b65f5649c8
commit 321593d138

View file

@ -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: