updated to check for null variables

This commit is contained in:
tworrall 2012-02-06 20:26:42 +00:00
parent 8bbd0b740f
commit 3053023f9e

View file

@ -9,29 +9,31 @@
<#assign html> <#assign html>
<html> <html>
<head> <head>
<title>${subject}</title> <title>${subject!}</title>
</head> </head>
<body> <body>
<p> <p>
An error occurred on your VIVO site at ${datetime}. An error occurred on your VIVO site at ${datetime!}.
</p> </p>
<p> <p>
<strong>Requested url:</strong> ${requestedUrl} <strong>Requested url:</strong> ${requestedUrl!}
</p> </p>
<p> <p>
<strong>Error message:</strong> ${errorMessage} <#if errorMessage?has_content>
<strong>Error message:</strong> ${errorMessage!}
</#if>
</p> </p>
<p> <p>
<strong>Stack trace</strong> (full trace available in the vivo log): <strong>Stack trace</strong> (full trace available in the vivo log):
<pre>${stackTrace}</pre> <pre>${stackTrace!}</pre>
</p> </p>
<#if cause?has_content> <#if cause?has_content>
<p><strong>Caused by:</strong> <p><strong>Caused by:</strong>
<pre>${cause}</pre> <pre>${cause!}</pre>
</p> </p>
</#if> </#if>
@ -40,18 +42,20 @@
</#assign> </#assign>
<#assign text> <#assign text>
An error occurred on your VIVO site at ${datetime}. An error occurred on your VIVO site at ${datetime!}.
Requested url: ${requestedUrl} Requested url: ${requestedUrl!}
Error message: ${errorMessage} <#if errorMessage?has_content>
Error message: ${errorMessage!}
</#if>
Stack trace (full trace available in the vivo log): Stack trace (full trace available in the vivo log):
${stackTrace} ${stackTrace!}
<#if cause?has_content> <#if cause?has_content>
Caused by: Caused by:
${cause} ${cause!}
</#if> </#if>
</#assign> </#assign>