Skip to content

Commit 66d289c

Browse files
committed
fixes #37 corrected FileSelector error
1 parent 0f21563 commit 66d289c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

widgets/+wt/FileSelector.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,9 @@ function setValueFromFullPath(obj,fullPath)
355355
numAbove = max(numel(rootParts) - idx + 1, 0);
356356
if numAbove>0
357357

358-
obj.throwError("Path '%s' is not within the root directory '%s'.",...
359-
fullPath, obj.RootDirectory);
358+
msg = "Select a path beneath the root:" + ...
359+
newline + newline + obj.RootDirectory;
360+
obj.throwError(msg);
360361

361362
else
362363

0 commit comments

Comments
 (0)