summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/TComponent.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/TComponent.php b/framework/TComponent.php
index 5b751ff3..5a3cd2f2 100644
--- a/framework/TComponent.php
+++ b/framework/TComponent.php
@@ -352,7 +352,7 @@ class TComponent
if(method_exists($object,$method))
$object->$method($sender,$param);
else
- throw new TInvalidDataValueException('component_eventhandler_invalid',get_class($this),$name,get_class($object).'::'.$method.'()');
+ throw new TInvalidDataValueException('component_eventhandler_invalid',get_class($this),$name,$handler);
}
else
call_user_func($handler,$sender,$param);
@@ -373,11 +373,11 @@ class TComponent
if(method_exists($object,$method))
$object->$method($sender,$param);
else
- throw new TInvalidDataValueException('component_eventhandler_invalid',get_class($this),$name,get_class($object).'::'.$method.'()');
+ throw new TInvalidDataValueException('component_eventhandler_invalid',get_class($this),$name,$handler[1]);
}
}
else
- throw new TInvalidDataValueException('component_eventhandler_invalid',get_class($this),$name,get_class($object).'::'.$method.'()');
+ throw new TInvalidDataValueException('component_eventhandler_invalid',get_class($this),$name,gettype($handler));
}
}
else if(!$this->hasEvent($name))