diff options
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r-- | framework/TApplication.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php index 80c55e44..5f5c519c 100644 --- a/framework/TApplication.php +++ b/framework/TApplication.php @@ -803,10 +803,9 @@ class TApplication extends TComponent */ public function onError($param) { - if($this->hasEventHandler('OnError')) - $this->raiseEvent('OnError',$this,$param); - else - $this->getErrorHandler()->handleError($this,$param); + Prado::log($param->getMessage(),TLogger::ERROR,'System.TApplication'); + $this->getErrorHandler()->handleError($this,$param); + $this->raiseEvent('OnError',$this,$param); } /** |