MDL-36903 Add a link to Moodle documentation from mdeploy error pages

This commit is contained in:
David Mudrák
2012-11-30 16:09:58 +01:00
parent e428b5e0ae
commit 333048e06b
+4 -1
View 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>');