Show exception message in title

This commit is contained in:
Thomas Gelf 2014-04-17 16:21:48 +00:00
parent 83b26bc595
commit 4a6fe006d8
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class ErrorController extends ActionController
break; break;
default: default:
$this->getResponse()->setHttpResponseCode(500); $this->getResponse()->setHttpResponseCode(500);
$this->view->title = 'Server error'; $this->view->title = 'Server error: ' . $exception->getMessage();
$this->view->message = $exception->getMessage(); $this->view->message = $exception->getMessage();
if ($this->getInvokeArg('displayExceptions') == true) { if ($this->getInvokeArg('displayExceptions') == true) {
$this->view->stackTrace = $exception->getTraceAsString(); $this->view->stackTrace = $exception->getTraceAsString();