mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-10-22 17:05:40 +02: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(
|
||||
"Title" => $this->title,
|
||||
"Name" => $this->checkSuiteName,
|
||||
"ErrorCode" => $this->errorCode,
|
||||
))->renderWith("EnvironmentChecker");
|
||||
|
||||
|
@ -68,8 +68,12 @@
|
||||
<% if ShouldPass %>
|
||||
<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 %>
|
||||
<% 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>
|
Loading…
Reference in New Issue
Block a user