Skip to content

Commit

Permalink
fix: better handle docker skip errors
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 May 12, 2022
1 parent ceee425 commit d10a0bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/pipe/docker/docker.go
Expand Up @@ -128,6 +128,9 @@ func (Pipe) Run(ctx *context.Context) error {
})
}
if err := g.Wait(); err != nil {
if pipe.IsSkip(err) {
return err
}
return fmt.Errorf("docker build failed: %w\nLearn more at https://goreleaser.com/errors/docker-build\n", err) // nolint:revive
}
return nil
Expand Down

0 comments on commit d10a0bc

Please sign in to comment.