Set job title correctly and pass reason why
[jalview.git] / src / jalview / ws / rest / RestJob.java
index 82b157d..e04a681 100644 (file)
@@ -100,9 +100,11 @@ public class RestJob extends AWsJob
           // TODO: move validation of input data to SeqGroupIndexVector
           if ((prm.getValue() instanceof SeqGroupIndexVector)
                   && (_input.getGroups() != null && _input.getGroups()
-                          .size() > 0))
+                          .size() >= prm.getValue().min))
           {
             alinp.add(prm.getValue());
+          } else {
+            statMessage=("Not enough groups defined on the alignment - need at least "+prm.getValue().min);
           }
         }
       }