Skip to content

Commit

Permalink
quick fix inverse
Browse files Browse the repository at this point in the history
  • Loading branch information
n8wb committed Jun 29, 2020
1 parent 63d41b6 commit 64e0a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/service/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ func (ds dockerService) StartContainer(ctx context.Context, cli entity.DockerCli
}
data, err := ioutil.ReadAll(rdr)
out := fmt.Sprintf("Task %s exited with %d", sc.Name, res.StatusCode)
if err != nil {
if err == nil {
out += "\n" + string(data)
}
return entity.NewFatalResult(out)
Expand Down

0 comments on commit 64e0a3c

Please sign in to comment.