mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-349489 improve DirectoryNotEmptyException error message - do not use {} symbols (confusing, it looks like an incorrect variable interpolation)
GitOrigin-RevId: bd0e0604f4b54b6569593c2cac895382fe3099a2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6845ab1391
commit
207d88b115
@@ -902,9 +902,9 @@ public final class FileUtilRt {
|
||||
try (DirectoryStream<Path> children = Files.newDirectoryStream(path, alwaysTrue)) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (Path child : children) {
|
||||
sb.append(child.getFileName()).append("\n");
|
||||
sb.append(child.getFileName()).append(", ");
|
||||
}
|
||||
return new DirectoryNotEmptyException(path.toAbsolutePath() + "{" + sb + "}");
|
||||
return new DirectoryNotEmptyException(path.toAbsolutePath() + " (children: " + sb + ")");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user