Skip to content

Commit

Permalink
Feature: Display error code if known
Browse files Browse the repository at this point in the history
  • Loading branch information
ph3-der-loewe committed Jun 29, 2018
1 parent 4e7985c commit bc6a960
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions admin/error-html.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
<h3>Response</h3>
<h4>Message</h4>
<p><xsl:value-of select="state/text" /></p>
<xsl:if test="state/@definition">
<p>Error code: <xsl:value-of select="state/@definition" /></p>
</xsl:if>
</div>
</xsl:for-each>
</div>
Expand Down
5 changes: 5 additions & 0 deletions admin/error-plaintext.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<xsl:text>Report:&#xa;</xsl:text>
<xsl:value-of select="state/text" />
<xsl:text>&#xa;</xsl:text>
<xsl:if test="state/@definition">
<xsl:text>Error code: </xsl:text>
<xsl:value-of select="state/@definition" />
<xsl:text>&#xa;</xsl:text>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

0 comments on commit bc6a960

Please sign in to comment.