[TASK] Improve exception for invalid transOrigPointerField 46/53846/2
authorMathias Brodala <mbrodala@pagemachine.de>
Wed, 23 Aug 2017 06:52:09 +0000 (08:52 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 31 Aug 2017 15:01:59 +0000 (17:01 +0200)
Resolves: #82175
Releases: master, 8.7
Change-Id: I4b70b2a662b1818171bb180f88f8d40a48ee91ed
Reviewed-on: https://review.typo3.org/53846
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Form/Container/SingleFieldContainer.php

index 29c4e8f..12249db 100644 (file)
@@ -65,8 +65,8 @@ class SingleFieldContainer extends AbstractContainer
                 $isOverlay = !empty($parentValue) ? (bool)$parentValue[0] : false;
             } else {
                 throw new \InvalidArgumentException(
-                    'The given value for the original language field ' . $this->data['processedTca']['ctrl']['transOrigPointerField']
-                    . ' of table ' . $table . ' contains an invalid value.',
+                    'The given value "' . $parentValue . '" for the original language field ' . $this->data['processedTca']['ctrl']['transOrigPointerField']
+                    . ' of table ' . $table . ' is invalid.',
                     1470742770
                 );
             }