Skip to content

Commit 6a4de21

Browse files
committed
[crypto] update error message
1 parent 81c2d41 commit 6a4de21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/crypto/passwords.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var (
1414
func MakeBCryptHash(password string) (string, error) {
1515
hash, err := bcrypt.GenerateFromPassword([]byte(password), bcrypt.DefaultCost)
1616
if err != nil {
17-
return "", fmt.Errorf("can't hash password: %w", err)
17+
return "", fmt.Errorf("failed to hash password: %w", err)
1818
}
1919
return string(hash), nil
2020
}

0 commit comments

Comments
 (0)