[BUGFIX] Exception "Could not create directory"
authorMichael Klapper <development@morphodo.com>
Tue, 7 Aug 2012 11:46:08 +0000 (13:46 +0200)
committerTolleiv Nietsch <tolleiv.nietsch@typo3.org>
Tue, 7 Aug 2012 12:27:50 +0000 (14:27 +0200)
The thrown exception is not that helpful while information
about the path is missing.

Change-Id: I3d3411a4ebcce8b1bfecbeb12aba58ceafa89ce4
Fixes: #39583
Releases: 6.0, 4.7, 4.6
Reviewed-on: http://review.typo3.org/13495
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
t3lib/class.t3lib_div.php

index 039bf67..50387ea 100644 (file)
@@ -2843,7 +2843,7 @@ final class t3lib_div {
 
                        $result = @mkdir($fullDirectoryPath, $permissionMask, TRUE);
                        if (!$result) {
-                               throw new \RuntimeException('Could not create directory!', 1170251400);
+                               throw new \RuntimeException('Could not create directory "' . $fullDirectoryPath . '"!', 1170251400);
                        }
                }
                return $firstCreatedPath;