From 55d738011bcfac2cc5c475d54908882de8c0c94b Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 24 Feb 2019 14:34:15 +0100 Subject: [PATCH] Improve exception message See #2509 --- .../lib/system/form/builder/field/AbstractFormField.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.20.1