Skip to content

Commit

Permalink
[JENKINS-20064]
Browse files Browse the repository at this point in the history
Need to report a failure correctly
  • Loading branch information
kohsuke committed Mar 11, 2014
1 parent dc9c84a commit 5664c65
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -158,7 +158,7 @@ protected UserDetails retrieveUser(String username, UsernamePasswordAuthenticati
if (!Util.filter(notFound,UserMayOrMayNotExistException.class).isEmpty())
// if one domain responds with UserMayOrMayNotExistException, then it might actually exist there,
// so our response will be "can't tell"
throw new MultiCauseUserNotFoundException("We can't tell if the user exists or not: "+username,notFound);
throw new MultiCauseUserMayOrMayNotExistException("We can't tell if the user exists or not: "+username,notFound);

if (!notFound.isEmpty())
throw new MultiCauseUserNotFoundException("No such user: "+username,notFound);
Expand Down

0 comments on commit 5664c65

Please sign in to comment.