From d9fdf78a366f2e3605bd33377c55e3b73399f2a8 Mon Sep 17 00:00:00 2001 From: TimHuynh Date: Thu, 26 Oct 2023 09:29:18 -0500 Subject: [PATCH] fix step in local --- executor/linux/step.go | 1 + executor/local/step.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/executor/linux/step.go b/executor/linux/step.go index 9184ef96..ff7ccfe0 100644 --- a/executor/linux/step.go +++ b/executor/linux/step.go @@ -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 } diff --git a/executor/local/step.go b/executor/local/step.go index dc34bb12..67b6b28f 100644 --- a/executor/local/step.go +++ b/executor/local/step.go @@ -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 }