Show exception's message on error page
authorMartin Hujer <mhujer@gmail.com>
Sat, 10 Dec 2011 16:28:28 +0000 (17:28 +0100)
committerMartin Hujer <mhujer@gmail.com>
Sat, 10 Dec 2011 16:28:28 +0000 (17:28 +0100)
module/Application/views/error/404.phtml
module/Application/views/error/index.phtml

index 10e81bb..1afb866 100644 (file)
@@ -7,6 +7,8 @@
 
 <h3>Exception information:</h3>
 <p>
+    <h4>Message:</h4>
+    <pre><?php echo $this->exception->getMessage() ?></pre>
     <h4>Stack trace:</h4>
     <pre><?php echo $this->exception->getTraceAsString() ?></pre>
 </p>
index 5036649..e62262f 100644 (file)
@@ -7,6 +7,8 @@
 
 <h3>Exception information:</h3>
 <p>
+    <h4>Message:</h4>
+    <pre><?php echo $this->exception->getMessage() ?></pre>
     <h4>Stack trace:</h4>
     <pre><?php echo $this->exception->getTraceAsString() ?></pre>
 </p>