Skip to content

Commit

Permalink
fix: improve nfpm error
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Nov 29, 2022
1 parent c8f0076 commit 6ff8936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pipe/nfpm/nfpm.go
Expand Up @@ -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)
Expand Down

0 comments on commit 6ff8936

Please sign in to comment.