[jboss-cvs] JBossAS SVN: r83818 - projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/registry.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Feb 3 11:58:20 EST 2009


Author: alesj
Date: 2009-02-03 11:58:20 -0500 (Tue, 03 Feb 2009)
New Revision: 83818

Modified:
   projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/registry/DefaultVFSRegistry.java
Log:
Exception info.

Modified: projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/registry/DefaultVFSRegistry.java
===================================================================
--- projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/registry/DefaultVFSRegistry.java	2009-02-03 16:52:34 UTC (rev 83817)
+++ projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/registry/DefaultVFSRegistry.java	2009-02-03 16:58:20 UTC (rev 83818)
@@ -25,6 +25,7 @@
 import java.net.URI;
 import java.net.URISyntaxException;
 import java.net.URL;
+import java.util.List;
 
 import org.jboss.virtual.VirtualFile;
 import org.jboss.virtual.VFSUtils;
@@ -80,7 +81,10 @@
                String subpath = relativePath.substring(path.length());
                VirtualFileHandler child = handler.getChild(subpath);
                if (child == null)
-                  throw new IOException("Cannot find child, root=" + handler + ", relativePath=" + subpath);
+               {
+                  List<VirtualFileHandler> children = handler.getChildren(true);
+                  throw new IOException("Child not found " + subpath + " for " + handler + ", available children: " + children);
+               }
 
                return child.getVirtualFile();
             }
@@ -89,7 +93,10 @@
          VirtualFileHandler root = context.getRoot();
          VirtualFileHandler child = root.getChild(relativePath);
          if (child == null)
-            throw new IOException("Cannot find child, root=" + root + ", relativePath=" + relativePath);
+         {
+            List<VirtualFileHandler> children = root.getChildren(true);
+            throw new IOException("Child not found " + relativePath + " for " + root + ", available children: " + children);
+         }
 
          return child.getVirtualFile();
       }




More information about the jboss-cvs-commits mailing list