Improve error message for unavailable auth cache in BasicHTTPAuthenticator (#7263)

This commit is contained in:
Jonathan Wei 2019-03-13 23:39:43 -07:00 committed by Benedict Jin
parent c020272add
commit 74bbe5ab9f
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ public class BasicHTTPAuthenticator implements Authenticator
{
Map<String, BasicAuthenticatorUser> userMap = cacheManager.get().getUserMap(name);
if (userMap == null) {
throw new IAE("No authenticator found with prefix: [%s]", name);
throw new IAE("No userMap is available for authenticator: [%s]", name);
}
BasicAuthenticatorUser user = userMap.get(username);