From af2c4793de1ba19ab5cf3f3888ae43466a0c0ae3 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Tue, 11 Jan 2022 15:58:46 -0700 Subject: [PATCH] logging stderr returning err Signed-off-by: Richard Jones --- plan/task/inputsecretexec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plan/task/inputsecretexec.go b/plan/task/inputsecretexec.go index 7d3f6244..a8022588 100644 --- a/plan/task/inputsecretexec.go +++ b/plan/task/inputsecretexec.go @@ -52,7 +52,7 @@ func (c *inputSecretExecTask) Run(ctx context.Context, pctx *plancontext.Context if err != nil { var exitErr *exec.ExitError if errors.As(err, &exitErr) { - return nil, errors.New(string(exitErr.Stderr)) + lg.Err(err).Msg(string(exitErr.Stderr)) } return nil, err }