From: Matthias Schmidt Date: Sat, 8 Sep 2012 14:57:10 +0000 (+0200) Subject: Improves error message in DatabaseObjectDecorator X-Git-Tag: 2.0.0_Beta_1~890^2~3^2^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fe1ee13265ae223df331eb6fc02782a8e99f0c1b;p=GitHub%2FWoltLab%2FWCF.git Improves error message in DatabaseObjectDecorator --- diff --git a/wcfsetup/install/files/lib/data/DatabaseObjectDecorator.class.php b/wcfsetup/install/files/lib/data/DatabaseObjectDecorator.class.php index 03eb97a71d..c767eae1ae 100644 --- a/wcfsetup/install/files/lib/data/DatabaseObjectDecorator.class.php +++ b/wcfsetup/install/files/lib/data/DatabaseObjectDecorator.class.php @@ -36,7 +36,7 @@ abstract class DatabaseObjectDecorator extends DatabaseObject { } if (!($object instanceof static::$baseClass)) { - throw new SystemException('Object does not match '.static::$baseClass); + throw new SystemException("Object does not match '".static::$baseClass."' (given object is of class '".get_class($object)."')"); } $this->object = $object;