Skip to content

Commit

Permalink
fix step in local
Browse files Browse the repository at this point in the history
  • Loading branch information
TimHuynh committed Oct 26, 2023
1 parent 65229b2 commit d9fdf78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions executor/linux/step.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ func (c *client) ExecStep(ctx context.Context, ctn *pipeline.Container) error {
if err != nil {
_step.SetStatus(constants.StatusError)
_step.SetError(err.Error())

return err
}

Expand Down
2 changes: 2 additions & 0 deletions executor/local/step.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ func (c *client) ExecStep(ctx context.Context, ctn *pipeline.Container) error {
// run the runtime container
err = c.Runtime.RunContainer(ctx, ctn, c.pipeline)
if err != nil {
_step.SetStatus(constants.StatusError)
_step.SetError(err.Error())
return err
}

Expand Down

0 comments on commit d9fdf78

Please # to comment.