[icinga-checkins] icinga.org: icinga-web/master: add error message into default exception template (fixes #3242)

git at icinga.org git at icinga.org
Thu Oct 4 21:04:28 CEST 2012


Module: icinga-web
Branch: master
Commit: 9239d8e8b726a776f6f7bb25b5c298f7b4767833
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=9239d8e8b726a776f6f7bb25b5c298f7b4767833

Author: Michael Friedrich <michael.friedrich at gmail.com>
Date:   Thu Oct  4 21:00:29 2012 +0200

add error message into default exception template (fixes #3242)

---

 app/templates/exceptions/_default.php |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/app/templates/exceptions/_default.php b/app/templates/exceptions/_default.php
index 7adaa1f..01ea63c 100755
--- a/app/templates/exceptions/_default.php
+++ b/app/templates/exceptions/_default.php
@@ -21,11 +21,13 @@
 // -----------------------------------------------------------------------------
 // {{{ICINGA_LICENSE_CODE}}}
 ?>
-test
 <?php
+print "Error happened!";
+print "\n\n";
     if(AgaviContext::getInstance()->getName() == 'web') {
         header('HTTP/1.0 500 Internal Server Error');
         header('Content-Type: text/plain');
     }
+
+print $e->getMessage();
 ?>
-Error.





More information about the icinga-checkins mailing list