From: Matthias Schmidt Date: Sun, 24 Feb 2019 13:34:15 +0000 (+0100) Subject: Improve exception message X-Git-Tag: 5.2.0_Alpha_1~273 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=55d738011bcfac2cc5c475d54908882de8c0c94b;p=GitHub%2FWoltLab%2FWCF.git Improve exception message See #2509 --- diff --git a/wcfsetup/install/files/lib/system/form/builder/field/AbstractFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/AbstractFormField.class.php index 001765fade..1beb098031 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/AbstractFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/AbstractFormField.class.php @@ -103,7 +103,7 @@ abstract class AbstractFormField implements IFormField { */ public function getHtml() { if ($this->templateName === null) { - throw new \LogicException("\$templateName property has not been set."); + throw new \LogicException("\$templateName property has not been set for class '" . static::class . "'."); } if ($this->requiresLabel() && $this->getLabel() === null) {