[jboss-cvs] JBossAS SVN: r79733 - projects/vfs/trunk/src/main/java/org/jboss/virtual.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Oct 20 04:26:57 EDT 2008
Author: alesj
Date: 2008-10-20 04:26:57 -0400 (Mon, 20 Oct 2008)
New Revision: 79733
Modified:
projects/vfs/trunk/src/main/java/org/jboss/virtual/VFS.java
Log:
Add same info for VFS as in VirtualFile for child not found.
Modified: projects/vfs/trunk/src/main/java/org/jboss/virtual/VFS.java
===================================================================
--- projects/vfs/trunk/src/main/java/org/jboss/virtual/VFS.java 2008-10-20 07:43:15 UTC (rev 79732)
+++ projects/vfs/trunk/src/main/java/org/jboss/virtual/VFS.java 2008-10-20 08:26:57 UTC (rev 79733)
@@ -208,7 +208,10 @@
VirtualFileHandler handler = context.getRoot();
VirtualFileHandler result = context.getChild(handler, VFSUtils.fixName(path));
if (result == null)
- throw new IOException("Child not found " + path + " for " + handler);
+ {
+ List<VirtualFileHandler> children = handler.getChildren(true);
+ throw new IOException("Child not found " + path + " for " + handler + ", available children: " + children);
+ }
return result.getVirtualFile();
}
More information about the jboss-cvs-commits
mailing list