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:
Jonathan A. Sternberg
2025-07-14 14:00:02 -05:00
parent ebe66f6922
commit e9d4b86161
+3
View File
@@ -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)
}