summaryrefslogtreecommitdiff
path: root/framework/Exceptions/TErrorHandler.php
diff options
context:
space:
mode:
authorxue <>2007-03-03 14:12:56 +0000
committerxue <>2007-03-03 14:12:56 +0000
commit30ca1077cf5a351a748ee18340b6f4e658f06b10 (patch)
treee2a4ea2eb0419ee7ca1c659a75328140a5ba3e8e /framework/Exceptions/TErrorHandler.php
parent13495b462f6a618530f0f6af71fb6fad6bafed91 (diff)
enhanced exception display in command line mode.
Diffstat (limited to 'framework/Exceptions/TErrorHandler.php')
-rw-r--r--framework/Exceptions/TErrorHandler.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/framework/Exceptions/TErrorHandler.php b/framework/Exceptions/TErrorHandler.php
index 869ccb00..62c51d27 100644
--- a/framework/Exceptions/TErrorHandler.php
+++ b/framework/Exceptions/TErrorHandler.php
@@ -197,7 +197,6 @@ class TErrorHandler extends TModule
}
}
-
/**
* Displays exception information.
* Exceptions are displayed with rich context information, including
@@ -207,6 +206,11 @@ class TErrorHandler extends TModule
*/
protected function displayException($exception)
{
+ if(php_sapi_name()==='cli')
+ {
+ echo $exception->getTraceAsString();
+ return;
+ }
if($exception instanceof TTemplateException)
{