refactor: Return original exception as caused by (#7722)

Co-authored-by: Aditya Radhakrishnan <aditya.radhakrish@gmail.com>
This commit is contained in:
Jorrick Sleijster 2023-06-07 19:28:39 +02:00 committed by GitHub
parent 5588a04bc5
commit 593fec5071
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ public class AuthenticationManager {
LoginContext lc = new LoginContext("WHZ-Authentication", new WHZCallbackHandler(userName, password));
lc.login();
} catch (LoginException le) {
throw new AuthenticationException(le.toString());
throw new AuthenticationException(le.toString(), le);
}
}