Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
etcdctl/ctlv2/command: fix type switch case order
Since syscall.Errno implements net.Error and all cases are matched sequentially, it's a mistake to put syscall.Errno case after net.Error since it will never be executed. This change swaps syscall.Errno case with net.Error to give that clause chance to execute.
- Loading branch information