Skip to content

Commit

Permalink
Polish Exception Message
Browse files Browse the repository at this point in the history
This error message provides more context around which credentials failed.

Issue gh-16494
  • Loading branch information
jzheaux committed Feb 20, 2025
1 parent 08f7146 commit 43ddf73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public Authentication authenticate(Authentication authentication) throws Authent
return authenticated;
}
catch (UsernameNotFoundException ex) {
throw new BadCredentialsException("Authentication failed.");
throw new BadCredentialsException("Failed to authenticate the one-time token");
}
}

Expand Down

0 comments on commit 43ddf73

Please sign in to comment.