mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #11288 from ZYunH/format-errors
fileutil, src: format errors
This commit is contained in:
commit
669cd6b5c6
@ -28,7 +28,7 @@ var (
|
|||||||
modkernel32 = syscall.NewLazyDLL("kernel32.dll")
|
modkernel32 = syscall.NewLazyDLL("kernel32.dll")
|
||||||
procLockFileEx = modkernel32.NewProc("LockFileEx")
|
procLockFileEx = modkernel32.NewProc("LockFileEx")
|
||||||
|
|
||||||
errLocked = errors.New("The process cannot access the file because another process has locked a portion of the file.")
|
errLocked = errors.New("the process cannot access the file because another process has locked a portion of the file")
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -185,7 +185,7 @@ func TestSRVDiscover(t *testing.T) {
|
|||||||
if service == "etcd-client" {
|
if service == "etcd-client" {
|
||||||
return "", tt.withoutSSL, nil
|
return "", tt.withoutSSL, nil
|
||||||
}
|
}
|
||||||
return "", nil, errors.New("Unknown service in mock")
|
return "", nil, errors.New("unknown service in mock")
|
||||||
}
|
}
|
||||||
|
|
||||||
srvs, err := GetClient("etcd-client", "example.com", "")
|
srvs, err := GetClient("etcd-client", "example.com", "")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user