Fix: regression run after failure (#971)
* Fix: Regressions of run step after failure * Add test, to enshure no panic * Print error of failed step
This commit is contained in:
@@ -136,12 +136,13 @@ func (e Executor) Then(then Executor) Executor {
|
||||
case Warning:
|
||||
log.Warning(err.Error())
|
||||
default:
|
||||
SetJobError(ctx, err)
|
||||
log.Debugf("%+v", err)
|
||||
return err
|
||||
}
|
||||
} else if ctx.Err() != nil {
|
||||
SetJobError(ctx, ctx.Err())
|
||||
}
|
||||
|
||||
if ctx.Err() != nil {
|
||||
return ctx.Err()
|
||||
}
|
||||
return then(ctx)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user