Selaa lähdekoodia

merged branch dpb587/patch-appkern (PR #2312)

Commits
-------

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

Discussion
----------

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

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -

before: Unable to create the logs directory (/home/symfony/root/app)
after: Unable to create the logs directory (/home/symfony/root/app/logs)
Fabien Potencier 13 vuotta sitten
vanhempi
commit
ee375ae412
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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) {
             if (!is_dir($dir)) {
                 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)) {
                 throw new \RuntimeException(sprintf("Unable to write in the %s directory (%s)\n", $name, $dir));