We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27fd30c commit b07b136Copy full SHA for b07b136
1 file changed
pkg/drivers/linode/linode.go
@@ -111,7 +111,7 @@ func createRandomRootPassword() (string, error) {
111
rawRootPass := make([]byte, 50)
112
_, err := rand.Read(rawRootPass)
113
if err != nil {
114
- return "", fmt.Errorf("Failed to generate random password")
+ return "", errors.New("Failed to generate random password")
115
}
116
rootPass := base64.StdEncoding.EncodeToString(rawRootPass)
117
return rootPass, nil
0 commit comments