fix: better handle docker skip errors (#3107)

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker
2022-05-12 14:44:09 -03:00
committed by GitHub
parent ceee425184
commit bbade2dd0f
+3
View File
@@ -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