Skip to content

Commit 13ea5d6

Browse files
committed
Better error handling
1 parent 6c9c7e9 commit 13ea5d6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4053,6 +4053,11 @@ public ApiResponse execute(RunSequenceHandlerForm form, BindException errors) th
40534053
errors.reject(ERROR_MSG, "Unable to parse JSON params: " + e.getMessage());
40544054
return null;
40554055
}
4056+
catch (IllegalArgumentException e)
4057+
{
4058+
errors.reject(ERROR_MSG, e.getMessage());
4059+
return null;
4060+
}
40564061
}
40574062

40584063
protected PipelineJob createOutputJob(RunSequenceHandlerForm form, Container targetContainer, String jobName, PipeRoot pr1, SequenceOutputHandler handler, List<SequenceOutputFile> inputs, JSONObject json) throws IOException, PipelineJobException

0 commit comments

Comments
 (0)