Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
TimHuynh committed Oct 26, 2023
1 parent d9fdf78 commit 7aa4a2b
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 @@ -152,6 +152,7 @@ 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 {
// set step status to error and step error
_step.SetStatus(constants.StatusError)
_step.SetError(err.Error())

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,8 +83,10 @@ 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 {
// set step status to error and step error
_step.SetStatus(constants.StatusError)
_step.SetError(err.Error())

return err
}

Expand Down

0 comments on commit 7aa4a2b

Please # to comment.