Skip to content

Commit 91f5656

Browse files
committed
Don't show stacktrace to user when login fails
1 parent 47c76ae commit 91f5656

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

tmc-plugin/src/fi/helsinki/cs/tmc/tasks/LoginTask.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import fi.helsinki.cs.tmc.utilities.LoginManager;
55
import java.util.concurrent.Callable;
66
import java.util.logging.Logger;
7-
import org.openide.util.Exceptions;
87

98
public class LoginTask implements Callable<Void> {
109
private static final Logger log = Logger.getLogger(LoginTask.class.getName());

tmc-plugin/src/fi/helsinki/cs/tmc/utilities/LoginManager.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ public void actionPerformed(ActionEvent e) {
4949
try {
5050
TmcCore.get().authenticate(ProgressObserver.NULL_OBSERVER, TmcSettingsHolder.get().getPassword().get()).call();
5151
} catch (Exception ex) {
52-
log.log(Level.WARNING, "Authentication failed!", ex);
5352
if (ex instanceof AuthenticationFailedException) {
5453
authenticationException = (AuthenticationFailedException) ex;
5554
ConvenientDialogDisplayer.getDefault().displayError("Username or password is incorrect.", ex);

0 commit comments

Comments
 (0)