Merge pull request #11288 from ZYunH/format-errors

fileutil, src: format errors
This commit is contained in:
Sahdev Zala 2019-10-25 14:43:33 -04:00 committed by GitHub
commit 669cd6b5c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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", "")