瀏覽代碼

Polish Exception Message

Polish Exception message for bad salt in BCrypt

Issue gh-4147
Rob Winch 8 年之前
父節點
當前提交
bb834bccf6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      crypto/src/main/java/org/springframework/security/crypto/bcrypt/BCrypt.java

+ 1 - 1
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();