ENHANCEMENT: clearer error message when dev/check fails

This commit is contained in:
Julian Seidenberg 2012-12-17 17:25:32 +13:00 committed by Ingo Schommer
parent ce94e7584a
commit fecf0979a9
2 changed files with 6 additions and 1 deletions

View File

@ -51,6 +51,7 @@ class EnvironmentChecker extends RequestHandler {
$resultText = $result->customise(array(
"Title" => $this->title,
"Name" => $this->checkSuiteName,
"ErrorCode" => $this->errorCode,
))->renderWith("EnvironmentChecker");

View File

@ -69,7 +69,11 @@
<p>Site is available</p>
<p class="subtext">(you may check for the presence of the text 'Site is available' rather than an HTTP $ErrorCode error on this page, if you prefer.)</p>
<% else %>
<p><b>Site is not available</b></p>
<% if Name == check %>
<p><b>A subsystem of the site is unavailable, but the site remains operational</b></p>
<% else %>
<p><b>Site is not available</b></p>
<% end_if %>
<% end_if %>
</body>
</html>