logging stderr returning err
Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
parent
9180878cf1
commit
af2c4793de
@ -52,7 +52,7 @@ func (c *inputSecretExecTask) Run(ctx context.Context, pctx *plancontext.Context
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
var exitErr *exec.ExitError
|
var exitErr *exec.ExitError
|
||||||
if errors.As(err, &exitErr) {
|
if errors.As(err, &exitErr) {
|
||||||
return nil, errors.New(string(exitErr.Stderr))
|
lg.Err(err).Msg(string(exitErr.Stderr))
|
||||||
}
|
}
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user