geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r521841 - /geronimo/server/trunk/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/xmlbeans/XmlBeansUtil.java
Date Fri, 23 Mar 2007 18:07:15 GMT
Author: djencks
Date: Fri Mar 23 11:07:14 2007
New Revision: 521841

URL: http://svn.apache.org/viewvc?view=rev&rev=521841
Log:
try to make xmlbeans error reports a little easier to read

Modified:
    geronimo/server/trunk/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/xmlbeans/XmlBeansUtil.java

Modified: geronimo/server/trunk/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/xmlbeans/XmlBeansUtil.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/xmlbeans/XmlBeansUtil.java?view=diff&rev=521841&r1=521840&r2=521841
==============================================================================
--- geronimo/server/trunk/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/xmlbeans/XmlBeansUtil.java
(original)
+++ geronimo/server/trunk/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/xmlbeans/XmlBeansUtil.java
Fri Mar 23 11:07:14 2007
@@ -210,7 +210,12 @@
                 }
 
                 if (!errors.isEmpty()) {
-                    throw new XmlException("Invalid deployment descriptor: " + errors + "\nDescriptor:
" + dd.toString(), null, errors);
+                    StringBuffer buf = new StringBuffer("Invalid deployment descriptor: errors:\n\n");
+                    for (Object o: errors) {
+                        buf.append(o).append("\n\n");
+                    }
+                    buf.append("Descriptor:\n").append(dd.toString()).append("\n");
+                    throw new XmlException(buf.toString(), null, errors);
                 }
             }
         } catch (NullPointerException e) {



Mime
View raw message