mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-10-22 15:05:40 +00:00
ENHANCEMENT: clearer error message when dev/check fails
This commit is contained in:
parent
ce94e7584a
commit
fecf0979a9
@ -51,6 +51,7 @@ class EnvironmentChecker extends RequestHandler {
|
|||||||
|
|
||||||
$resultText = $result->customise(array(
|
$resultText = $result->customise(array(
|
||||||
"Title" => $this->title,
|
"Title" => $this->title,
|
||||||
|
"Name" => $this->checkSuiteName,
|
||||||
"ErrorCode" => $this->errorCode,
|
"ErrorCode" => $this->errorCode,
|
||||||
))->renderWith("EnvironmentChecker");
|
))->renderWith("EnvironmentChecker");
|
||||||
|
|
||||||
|
@ -68,8 +68,12 @@
|
|||||||
<% if ShouldPass %>
|
<% if ShouldPass %>
|
||||||
<p>Site is available</p>
|
<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>
|
<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 %>
|
||||||
|
<% if Name == check %>
|
||||||
|
<p><b>A subsystem of the site is unavailable, but the site remains operational</b></p>
|
||||||
<% else %>
|
<% else %>
|
||||||
<p><b>Site is not available</b></p>
|
<p><b>Site is not available</b></p>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
<% end_if %>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
x
Reference in New Issue
Block a user