logging stderr returning err

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones 2022-01-11 15:58:46 -07:00
parent 9180878cf1
commit af2c4793de
No known key found for this signature in database
GPG Key ID: CFB3A382EB166F4C

View File

@ -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
}