Skip to content

Commit 09b4649

Browse files
committed
errors.reject instead of throwing FileNotFoundException
1 parent e05e195 commit 09b4649

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jbrowse/src/org/labkey/jbrowse/JBrowseController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,8 @@ public Object execute(GetSessionForm form, BindException errors) throws Exceptio
771771
}
772772
else
773773
{
774-
throw new FileNotFoundException("File not found.");
774+
errors.reject(ERROR_MSG, "Unknown session: " + form.getSession());
775+
return null;
775776
}
776777

777778
return new ApiSimpleResponse(resp);

0 commit comments

Comments
 (0)