Skip to content

Commit e9d4b86

Browse files
committed
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>
1 parent ebe66f6 commit e9d4b86

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

dap/thread.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ func (t *thread) Evaluate(ctx Context, c gateway.Client, ref gateway.Reference,
9494

9595
select {
9696
case step = <-t.pause(ctx, err, event):
97+
if err != nil {
98+
return err
99+
}
97100
case <-ctx.Done():
98101
return context.Cause(ctx)
99102
}

0 commit comments

Comments
 (0)