testmycode/tmc-netbeans

Bad error message when no password entered

kenkku opened this issue · 4 comments

The plugin just shows "403 Forbidden" when submitting answer and password is not set. Related: #53

The fix is probably to add a call to ServerErrorHelper.getServerExceptionMsg to whatever component is causing that error.

Should ServerErrorHelper.getServerExceptionMsg(ex) be added in to bgTaskFailed(Throwable ex) in TestRunHandler? It is already in ExerciseSubmitter.

jamo commented

I guess so.

Should all error messages be like this?
dialogs.displayError("Failed to check for new exercises.\n" + ServerErrorHelper.getServerExceptionMsg(ex));