diff --git a/Model/Config/Backend/ContainerId.php b/Model/Config/Backend/ContainerId.php index 58b9f861..d98c65c8 100644 --- a/Model/Config/Backend/ContainerId.php +++ b/Model/Config/Backend/ContainerId.php @@ -10,8 +10,8 @@ class ContainerId extends Value { public function beforeSave() { - if ($this->validate()) { - throw new InvalidConfig('Invalid container ID. It should start with "GTM-"'); + if (false === $this->validate()) { + throw new InvalidConfig('Invalid container ID "' . $this->getValue() . '". It should start with "GTM-"'); } return parent::beforeSave(); diff --git a/composer.json b/composer.json index 7512accc..c50b516c 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "yireo/magento2-googletagmanager2", - "version": "3.0.0", + "version": "3.0.1", "license": "OSL-3.0", "type": "magento2-module", "homepage": "https://www.yireo.com/software/magento-extensions/googletagmanager2",