Browse Source

优化错误提示

master
Sydonian 3 months ago
parent
commit
826721c342
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      pkgs/ioswitch/exec/executor.go

+ 5
- 1
pkgs/ioswitch/exec/executor.go View File

@@ -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()



Loading…
Cancel
Save