Skip to content

Commit b49002b

Browse files
committed
bcrypt: explicitly state inclusive cost bounds in InvalidCostError string
Signed-off-by: redwrasse <[email protected]>
1 parent 5e2ed03 commit b49002b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bcrypt/bcrypt.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (ih InvalidHashPrefixError) Error() string {
5050
type InvalidCostError int
5151

5252
func (ic InvalidCostError) Error() string {
53-
return fmt.Sprintf("crypto/bcrypt: cost %d is outside allowed range [%d,%d]", int(ic), MinCost, MaxCost)
53+
return fmt.Sprintf("crypto/bcrypt: cost %d is outside allowed inclusive range %d..%d", int(ic), MinCost, MaxCost)
5454
}
5555

5656
const (

0 commit comments

Comments
 (0)