1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-07 13:31:37 +02:00

fix: improve nfpm error

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos A Becker 2022-11-29 08:13:53 -03:00
parent c8f007653c
commit 6ff89366ca
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -410,7 +410,7 @@ func create(ctx *context.Context, fpm config.NFPM, format string, binaries []*ar
defer w.Close()
if err := packager.Package(info, w); err != nil {
return fmt.Errorf("nfpm failed: %w", err)
return fmt.Errorf("nfpm failed for %s: %w", name, err)
}
if err := w.Close(); err != nil {
return fmt.Errorf("could not close package file: %w", err)