diff options
author | defanor <defanor@uberspace.net> | 2019-02-16 09:52:57 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2019-02-16 09:52:57 +0300 |
commit | d13259f1d4d78a4fd5c5873275416516d6e7d65b (patch) | |
tree | dcb6612769b26b6980797cc25fa670724a83c893 /example | |
parent | 1f812ab812fe835d30ccddbbfb10917335fc4882 (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')
-rw-r--r-- | example/common.xsl | 5 |
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> |