fileutil, src: format errors

release-3.5
ZYunH 2019-10-23 15:00:48 +08:00
parent b5afbdd8d0
commit 279fee668b
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ var (
modkernel32 = syscall.NewLazyDLL("kernel32.dll")
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 (

View File

@ -185,7 +185,7 @@ func TestSRVDiscover(t *testing.T) {
if service == "etcd-client" {
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", "")