cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Haight <pet...@sapros.com>
Subject Patch for better esql error reporting.
Date Wed, 07 Feb 2001 20:40:13 GMT

This lets me see what error the database is reporting in the logs. (This is
Cocoon2 out of today's cvs).

Index: src/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl
===================================================================
RCS file: /home/cvspublic/xml-cocoon/src/org/apache/cocoon/components/language/markup/xsp/java/Attic/esql.xsl,v
retrieving revision 1.1.2.44
diff -u -r1.1.2.44 esql.xsl
--- src/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl	2001/02/06 19:00:46
1.1.2.44
+++ src/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl	2001/02/07 20:37:03
@@ -319,7 +319,7 @@
               </xsl:otherwise>
             </xsl:choose>
           } catch (Exception _esql_exception_<xsl:value-of select="generate-id(.)"/>)
{
-            throw new RuntimeException("Error opening connection to dburl: "+String.valueOf(<xsl:copy-of
select="$dburl"/>));
+            throw new RuntimeException("Error opening connection to dburl: "+String.valueOf(<xsl:copy-of
select="$dburl"/>) + ". " + _esql_exception_<xsl:value-of select="generate-id(.)"/>);
           }
         </xsl:otherwise>
       </xsl:choose>

Mime
View raw message