Skip to content

Commit

Permalink
fix error handling in runtime for outputs ctn
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper committed Aug 12, 2024
1 parent 591883f commit 39973b0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions runtime/docker/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"context"
"fmt"
"io"
"log"
"strings"

"github.com/docker/docker/api/types"
Expand Down Expand Up @@ -310,12 +309,12 @@ func (c *client) PollOutputsContainer(ctx context.Context, ctn *pipeline.Contain

responseExec, err := c.Docker.ContainerExecCreate(ctx, ctn.ID, execConfig)
if err != nil {
log.Fatal(err)
return nil, err
}

hijackedResponse, err := c.Docker.ContainerExecAttach(ctx, responseExec.ID, types.ExecStartCheck{})
if err != nil {
log.Fatal(err)
return nil, err
}

defer func() {
Expand Down

0 comments on commit 39973b0

Please sign in to comment.