Skip to content

Commit 23d6010

Browse files
committed
fix capitalized error lines
1 parent 6a43b2f commit 23d6010

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libvirt/uri/tls.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func findResource(name string, dirs ...string) (string, error) {
3939
return "", err
4040
}
4141
}
42-
return "", fmt.Errorf("Can't locate resource '%s' in %v: %w", name, dirs, fs.ErrNotExist)
42+
return "", fmt.Errorf("can't locate resource '%s' in %v: %w", name, dirs, fs.ErrNotExist)
4343
}
4444

4545
func amIRoot() (bool, error) {
@@ -99,13 +99,13 @@ func (u *ConnectionURI) tlsConfig() (*tls.Config, error) {
9999

100100
caCert, err := ioutil.ReadFile(caCertPath)
101101
if err != nil {
102-
return nil, fmt.Errorf("Can't read certificate '%s': %w", caCert, err)
102+
return nil, fmt.Errorf("can't read certificate '%s': %w", caCert, err)
103103
}
104104

105105
roots := x509.NewCertPool()
106106
ok := roots.AppendCertsFromPEM([]byte(caCert))
107107
if !ok {
108-
return nil, fmt.Errorf("Failed to parse CA certificate '%s'", caCertPath)
108+
return nil, fmt.Errorf("failed to parse CA certificate '%s'", caCertPath)
109109
}
110110

111111
clientCert, err := tls.LoadX509KeyPair(clientCertPath, clientKeyPath)

0 commit comments

Comments
 (0)