Skip to content

Commit b107e00

Browse files
committed
Improve error warnings
1 parent ddfb68f commit b107e00

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -516,13 +516,11 @@ public void validateForm(GetGenotypesForm form, Errors errors)
516516
errors.reject(ERROR_MSG, "Must provide the trackId");
517517
return;
518518
}
519-
else
519+
520+
if (!isValidUUID(form.getTrackId()))
520521
{
521-
if (!isValidUUID(form.getTrackId()))
522-
{
523-
errors.reject(ERROR_MSG, "Invalid track ID: " + form.getTrackId());
524-
return;
525-
}
522+
errors.reject(ERROR_MSG, "Invalid track ID: " + form.getTrackId());
523+
return;
526524
}
527525

528526
List<JsonFile> jsonFiles = getJsonFiles(form);

0 commit comments

Comments
 (0)