From 13495b462f6a618530f0f6af71fb6fad6bafed91 Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 2 Mar 2007 21:05:38 +0000 Subject: Improved error display. --- framework/TComponent.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'framework/TComponent.php') diff --git a/framework/TComponent.php b/framework/TComponent.php index 5f907082..54fe7ec7 100644 --- a/framework/TComponent.php +++ b/framework/TComponent.php @@ -389,10 +389,7 @@ class TComponent } catch(Exception $e) { - if($e instanceof TException) - throw $e; - else - throw new TInvalidOperationException('component_expression_invalid',get_class($this),$expression,$e->getMessage()); + throw new TInvalidOperationException('component_expression_invalid',get_class($this),$expression,$e->getMessage()); } } @@ -415,10 +412,7 @@ class TComponent } catch(Exception $e) { - if($e instanceof TException) - throw $e; - else - throw new TInvalidOperationException('component_statements_invalid',get_class($this),$statements,$e->getMessage()); + throw new TInvalidOperationException('component_statements_invalid',get_class($this),$statements,$e->getMessage()); } } -- cgit v1.2.3