Skip to content

Commit

Permalink
fix: missed an error from utils.ColorPrintYAML callers
Browse files Browse the repository at this point in the history
  • Loading branch information
mkcp committed Sep 6, 2024
1 parent 15de2a7 commit dc9a5d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pkg/packager/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
)

// Publish publishes the package to a registry
// FIXME(mkcp): named return that could be shadowed
func (p *Packager) Publish(ctx context.Context) (err error) {
_, isOCISource := p.source.(*sources.OCISource)
if isOCISource && p.cfg.PublishOpts.SigningKeyPath == "" {
Expand Down Expand Up @@ -117,7 +118,10 @@ func (p *Packager) Publish(ctx context.Context) (err error) {
},
})
}
utils.ColorPrintYAML(ex, nil, true)
err := utils.ColorPrintYAML(ex, nil, true)
if err != nil {
return err
}
}
return nil
}

0 comments on commit dc9a5d6

Please sign in to comment.