MDL-36903 Add a link to Moodle documentation from mdeploy error pages
authorDavid Mudrák <david@moodle.com>
Fri, 30 Nov 2012 12:16:01 +0000 (13:16 +0100)
committerDavid Mudrák <david@moodle.com>
Fri, 30 Nov 2012 15:09:58 +0000 (16:09 +0100)
mdeploy.php

index 7b09a2b..fa53d04 100644 (file)
@@ -618,9 +618,12 @@ class output_http_provider extends output_provider {
      * @param Exception $e uncaught exception
      */
     public function exception(Exception $e) {
+
+        $docslink = 'http://docs.moodle.org/en/admin/mdeploy/'.get_class($e);
         $this->start_output();
         echo('<h1>Oops! It did it again</h1>');
-        echo('<p><strong>Moodle deployment utility had a trouble with your request. See the debugging information for more details.</strong></p>');
+        echo('<p><strong>Moodle deployment utility had a trouble with your request.
+            See <a href="'.$docslink.'">the docs page</a> and the debugging information for more details.</strong></p>');
         echo('<pre>');
         echo exception_handlers::format_exception_info($e);
         echo('</pre>');