Skip to content

Commit 0bbf7ea

Browse files
committed
Use getPath() in the error message.
1 parent 21e947e commit 0bbf7ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ public void export(TempImageAction form, HttpServletResponse response, BindExcep
439439
FileLike tempDirRoot = new FileSystemLike.Builder(FileUtil.getTempDirectory()).root();
440440
if (!(tempDirRoot.getFileSystem().isDescendant(tempDirRoot, new File(form.getDirectory()).toURI())))
441441
{
442-
throw new FileNotFoundException("Directory '" + form.getDirectory() + "' is not the descendant of '" + tempDirRoot.getFileSystem() + "'");
442+
throw new FileNotFoundException("Directory '" + form.getDirectory() + "' is not the descendant of '" + tempDirRoot.getPath() + "'");
443443
}
444444
FileLike parentDirFileLike = form.getDirectory() == null ? tempDirRoot : tempDirRoot.resolveFile(new Path(form.getDirectory()));
445445
File parentDir = FileSystemLike.toFile(parentDirFileLike);

0 commit comments

Comments
 (0)