From de630e4134484cea82fd0a1864a45db3bd9974bc Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 6 Oct 2006 03:44:07 +0000 Subject: update js logger and make TComponent::ensureEnum show available values during exception. --- 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