- allowedServerExceptions = 0;\r
- jobComplete = false;\r
-\r
- wsInfo.appendProgressText("Failed to submit the prediction.\n"\r
- +\r
- "It is most likely that there is a problem with the server.\n"\r
- + "Just close the window\n");\r
+ allowedServerExceptions = -1;\r
+ jobComplete = true;\r
+\r
+ wsInfo.setProgressText("Failed to submit the prediction. (Just close the window)\n"\r
+ + ((e.getMessage().indexOf("Exception")>-1) ? (\r
+ "It is most likely that there is a problem with the server.\n")\r
+ : e.getMessage())\r
+ +wsInfo.getProgressText());\r