From bb834bccf62a84b1cb8cdf821def7009306842ee Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Tue, 6 Dec 2016 08:45:08 -0600 Subject: [PATCH] Polish Exception Message Polish Exception message for bad salt in BCrypt Issue gh-4147 --- .../java/org/springframework/security/crypto/bcrypt/BCrypt.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/src/main/java/org/springframework/security/crypto/bcrypt/BCrypt.java b/crypto/src/main/java/org/springframework/security/crypto/bcrypt/BCrypt.java index d91dd5caed..80477c0f56 100644 --- a/crypto/src/main/java/org/springframework/security/crypto/bcrypt/BCrypt.java +++ b/crypto/src/main/java/org/springframework/security/crypto/bcrypt/BCrypt.java @@ -543,7 +543,7 @@ public class BCrypt { StringBuilder rs = new StringBuilder(); if (salt == null) { - throw new IllegalArgumentException("Invalid salt"); + throw new IllegalArgumentException("salt cannot be null"); } int saltLength = salt.length();