summaryrefslogtreecommitdiff
path: root/framework/Exceptions
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Exceptions')
-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)
{