JAL-1601 Set job status to server error if collecting results throws an uncaught...
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Fri, 13 Oct 2023 13:49:40 +0000 (15:49 +0200)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Fri, 13 Oct 2023 13:49:40 +0000 (15:49 +0200)
src/jalview/ws2/actions/BaseTask.java

index 387ca69..b5a5158 100644 (file)
@@ -207,6 +207,7 @@ public abstract class BaseTask<T extends BaseJob, R> implements TaskI<R>
     catch (Exception e)
     {
       eventHandler.fireTaskException(e);
+      setStatus(JobStatus.SERVER_ERROR);
       throw e;
     }
   }