From fecf0979a9a4c9a61865aa87d64a291c94c96fe8 Mon Sep 17 00:00:00 2001 From: Julian Seidenberg Date: Mon, 17 Dec 2012 17:25:32 +1300 Subject: [PATCH] ENHANCEMENT: clearer error message when dev/check fails --- code/EnvironmentChecker.php | 1 + templates/EnvironmentChecker.ss | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/code/EnvironmentChecker.php b/code/EnvironmentChecker.php index e82299e..c251722 100644 --- a/code/EnvironmentChecker.php +++ b/code/EnvironmentChecker.php @@ -51,6 +51,7 @@ class EnvironmentChecker extends RequestHandler { $resultText = $result->customise(array( "Title" => $this->title, + "Name" => $this->checkSuiteName, "ErrorCode" => $this->errorCode, ))->renderWith("EnvironmentChecker"); diff --git a/templates/EnvironmentChecker.ss b/templates/EnvironmentChecker.ss index ac509ee..837c509 100644 --- a/templates/EnvironmentChecker.ss +++ b/templates/EnvironmentChecker.ss @@ -69,7 +69,11 @@

Site is available

(you may check for the presence of the text 'Site is available' rather than an HTTP $ErrorCode error on this page, if you prefer.)

<% else %> -

Site is not available

+ <% if Name == check %> +

A subsystem of the site is unavailable, but the site remains operational

+ <% else %> +

Site is not available

+ <% end_if %> <% end_if %> \ No newline at end of file