From fe60cc221f922ea362826e2d00431c5df28fe85f Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 6 Oct 2006 03:46:05 +0000 Subject: fixed #410 #412 --- framework/TComponent.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'framework/TComponent.php') diff --git a/framework/TComponent.php b/framework/TComponent.php index 95186800..54fe7ec7 100644 --- a/framework/TComponent.php +++ b/framework/TComponent.php @@ -618,7 +618,9 @@ class TPropertyValue if($types[$enums]->hasConstant($value)) return $value; else - throw new TInvalidDataValueException('propertyvalue_enumvalue_invalid',$value,$enums); + throw new TInvalidDataValueException( + 'propertyvalue_enumvalue_invalid',$value, + implode(' | ',$types[$enums]->getConstants())); } else if(!is_array($enums)) { -- cgit v1.2.3