summaryrefslogtreecommitdiff
path: root/example/common.xsl
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2019-02-16 09:52:57 +0300
committerdefanor <defanor@uberspace.net>2019-02-16 09:52:57 +0300
commitd13259f1d4d78a4fd5c5873275416516d6e7d65b (patch)
treedcb6612769b26b6980797cc25fa670724a83c893 /example/common.xsl
parent1f812ab812fe835d30ccddbbfb10917335fc4882 (diff)
Handle DB connection failures
Provide an error message on those. Also add an error message from libpq when it's available.
Diffstat (limited to 'example/common.xsl')
-rw-r--r--example/common.xsl5
1 files changed, 5 insertions, 0 deletions
diff --git a/example/common.xsl b/example/common.xsl
index cc10c40..15838ba 100644
--- a/example/common.xsl
+++ b/example/common.xsl
@@ -31,6 +31,11 @@
<dd><pre><xsl:copy-of select="text()" /></pre></dd>
</xsl:template>
+ <xsl:template match="pgx:db_error">
+ <dt>DB error message</dt>
+ <dd><pre><xsl:copy-of select="text()" /></pre></dd>
+ </xsl:template>
+
<xsl:template match="pgx:exec_status">
<dt>ExecStatus</dt>
<dd><xsl:copy-of select="text()" /></dd>