File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
tmc-plugin/src/fi/helsinki/cs/tmc Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ public void run() {
86
86
87
87
if (currentCourseBeforeUpdate == null ) {
88
88
if (!beQuiet ) {
89
- dialogs .displayMessage ("Please select a course in TMC -> Settings." );
89
+ dialogs .displayMessage ("Please make sure you're logged in and have selected a course in TMC -> Settings." );
90
90
}
91
91
return ;
92
92
}
Original file line number Diff line number Diff line change 9
9
import fi .helsinki .cs .tmc .core .holders .TmcSettingsHolder ;
10
10
import fi .helsinki .cs .tmc .coreimpl .TmcCoreSettingsImpl ;
11
11
import fi .helsinki .cs .tmc .model .CourseDb ;
12
+ import fi .helsinki .cs .tmc .ui .ConvenientDialogDisplayer ;
12
13
import fi .helsinki .cs .tmc .ui .CourseListWindow ;
13
14
import fi .helsinki .cs .tmc .ui .LoginDialog ;
14
15
import fi .helsinki .cs .tmc .ui .OrganizationListWindow ;
@@ -51,6 +52,7 @@ public void actionPerformed(ActionEvent e) {
51
52
log .log (Level .WARNING , "Authentication failed!" , ex );
52
53
if (ex instanceof AuthenticationFailedException ) {
53
54
authenticationException = (AuthenticationFailedException ) ex ;
55
+ // ConvenientDialogDisplayer.getDefault().displayError("Username or password is incorrect.", ex);
54
56
}
55
57
}
56
58
setReady (true );
@@ -63,7 +65,7 @@ public void actionPerformed(ActionEvent e) {
63
65
}
64
66
65
67
if (authenticationException != null ) {
66
- // throw authenticationException;
68
+ throw authenticationException ;
67
69
}
68
70
showOrganizations ();
69
71
}
You can’t perform that action at this time.
0 commit comments