Skip to content

Commit 9a58495

Browse files
committed
More accurate error message
1 parent 3b4a385 commit 9a58495

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/SequenceAnalysisController.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4120,17 +4120,19 @@ public class RunVariantProcessingAction extends RunSequenceHandlerAction
41204120
protected PipelineJob createOutputJob(RunSequenceHandlerForm form, Container targetContainer, String jobName, PipeRoot pr1, SequenceOutputHandler<?> handler, List<SequenceOutputFile> inputs, JSONObject json) throws PipelineJobException, IOException
41214121
{
41224122
String method = json.getString("scatterGatherMethod");
4123+
validateGenomes(inputs, handler);
4124+
4125+
VariantProcessingStep.ScatterGatherMethod scatterMethod;
41234126
try
41244127
{
4125-
validateGenomes(inputs, handler);
4126-
VariantProcessingStep.ScatterGatherMethod scatterMethod = VariantProcessingStep.ScatterGatherMethod.valueOf(method);
4127-
4128-
return new VariantProcessingJob(targetContainer, getUser(), jobName, pr1, handler, inputs, json, scatterMethod);
4128+
scatterMethod = VariantProcessingStep.ScatterGatherMethod.valueOf(method);
41294129
}
41304130
catch (IllegalArgumentException e)
41314131
{
41324132
throw new IllegalArgumentException("Unknown scatter method: [" + method + "]", e);
41334133
}
4134+
4135+
return new VariantProcessingJob(targetContainer, getUser(), jobName, pr1, handler, inputs, json, scatterMethod);
41344136
}
41354137
}
41364138

0 commit comments

Comments
 (0)