[BUGFIX] Provide Foldername in InaccessibleException 53/55553/2
authorMathias Schreiber <mathias.schreiber@typo3.org>
Sat, 3 Feb 2018 22:17:37 +0000 (23:17 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 4 Feb 2018 18:34:47 +0000 (19:34 +0100)
The central InsufficientFolderReadPermissionsException now
displays the name of the folder in question to ease tracing down
errors.

Resolves: #82342
Releases: master, 8.7
Change-Id: I968c74e6b2e210b07964f7ebb141155525c26ee5
Reviewed-on: https://review.typo3.org/55553
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Resource/InaccessibleFolder.php

index 895ccdd..352eeee 100644 (file)
@@ -33,7 +33,7 @@ class InaccessibleFolder extends Folder
     protected function throwInaccessibleException()
     {
         throw new Exception\InsufficientFolderReadPermissionsException(
-            'You are trying to use a method on an inaccessible folder.',
+            'You are trying to use a method on the inaccessible folder "' . $this->getName() . '".',
             1390290029
         );
     }