dap: always return the error from execution if we paused on an error and resume
Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
This commit is contained in:
@@ -94,6 +94,9 @@ func (t *thread) Evaluate(ctx Context, c gateway.Client, ref gateway.Reference,
|
||||
|
||||
select {
|
||||
case step = <-t.pause(ctx, err, event):
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
case <-ctx.Done():
|
||||
return context.Cause(ctx)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user