浏览代码

[HttpKernel] Show the actual directory needing to be created.

Danny Berger 13 年之前
父节点
当前提交
54196382b7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Component/HttpKernel/Kernel.php

+ 1 - 1
src/Symfony/Component/HttpKernel/Kernel.php

@@ -615,7 +615,7 @@ abstract class Kernel implements KernelInterface
         foreach (array('cache' => $this->getCacheDir(), 'logs' => $this->getLogDir()) as $name => $dir) {
         foreach (array('cache' => $this->getCacheDir(), 'logs' => $this->getLogDir()) as $name => $dir) {
             if (!is_dir($dir)) {
             if (!is_dir($dir)) {
                 if (false === @mkdir($dir, 0777, true)) {
                 if (false === @mkdir($dir, 0777, true)) {
-                    throw new \RuntimeException(sprintf("Unable to create the %s directory (%s)\n", $name, dirname($dir)));
+                    throw new \RuntimeException(sprintf("Unable to create the %s directory (%s)\n", $name, $dir));
                 }
                 }
             } elseif (!is_writable($dir)) {
             } elseif (!is_writable($dir)) {
                 throw new \RuntimeException(sprintf("Unable to write in the %s directory (%s)\n", $name, $dir));
                 throw new \RuntimeException(sprintf("Unable to write in the %s directory (%s)\n", $name, $dir));