Improve exception message
authorMatthias Schmidt <gravatronics@live.com>
Sun, 24 Feb 2019 13:34:15 +0000 (14:34 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 24 Feb 2019 13:34:15 +0000 (14:34 +0100)
See #2509

wcfsetup/install/files/lib/system/form/builder/field/AbstractFormField.class.php

index 001765fade5d29ca22c5cff18b6312c5e21ef815..1beb09803181d3b3160b50a62123f9aa138958fc 100644 (file)
@@ -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) {