From 826721c3423f0ef929e5c9351ccb2dc17758025f Mon Sep 17 00:00:00 2001 From: Sydonian <794346190@qq.com> Date: Fri, 15 Aug 2025 17:04:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=94=99=E8=AF=AF=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/ioswitch/exec/executor.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/ioswitch/exec/executor.go b/pkgs/ioswitch/exec/executor.go index 50ed2d3..79377bd 100644 --- a/pkgs/ioswitch/exec/executor.go +++ b/pkgs/ioswitch/exec/executor.go @@ -79,7 +79,11 @@ func (s *Executor) runOps(ops []Op, ctx *ExecContext, cancel context.CancelFunc) err = context.Canceled } } else { - err = multierror.Append(err, fmt.Errorf("%T: %w", op, e)) + if err == context.Canceled { + err = e + } else { + err = multierror.Append(err, fmt.Errorf("%T: %w", op, e)) + } } lock.Unlock()