File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
tmc-plugin/src/fi/helsinki/cs/tmc/actions Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1313import fi .helsinki .cs .tmc .utilities .FutureCallbackList ;
1414import fi .helsinki .cs .tmc .core .TmcCore ;
1515import fi .helsinki .cs .tmc .core .exceptions .TmcCoreException ;
16+ import static fi .helsinki .cs .tmc .model .CourseDb .logger ;
1617import java .net .URI ;
1718import java .net .URISyntaxException ;
1819import fi .helsinki .cs .tmc .utilities .BgTask ;
@@ -38,6 +39,8 @@ public final class RefreshCoursesAction {
3839
3940 private final TmcCore tmcCore ;
4041 private final NbTmcSettings tmcSettings ;
42+
43+ private static final Logger logger = Logger .getLogger (RefreshCoursesAction .class .getName ());
4144
4245 public RefreshCoursesAction () {
4346 this (NbTmcSettings .getDefault ());
@@ -183,7 +186,8 @@ public void bgTaskCancelled() {
183186 @ Override
184187 public void bgTaskFailed (Throwable ex ) {
185188 if (showDialogOnError ) {
186- dialogs .displayError ("Course refresh failed.\n " + ServerErrorHelper .getServerExceptionMsg (ex ));
189+ logger .log (Level .INFO , "Course refresh failed: " , ex );
190+ dialogs .displayError ("Course refresh failed. Check your server address and credentials\n " );
187191 }
188192 }
189193 }
You can’t perform that action at this time.
0 commit comments