Browse Source

[DoctrineBridge] fixed directory reference when the directory cannot be created

Fabien Potencier 13 years ago
parent
commit
8d6add638b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Symfony/Bridge/Doctrine/CacheWarmer/ProxyCacheWarmer.php

+ 1 - 1
src/Symfony/Bridge/Doctrine/CacheWarmer/ProxyCacheWarmer.php

@@ -52,7 +52,7 @@ class ProxyCacheWarmer implements CacheWarmerInterface
             // we need the directory no matter the proxy cache generation strategy
             if (!file_exists($proxyCacheDir = $em->getConfiguration()->getProxyDir())) {
                 if (false === @mkdir($proxyCacheDir, 0777, true)) {
-                    throw new \RuntimeException(sprintf('Unable to create the Doctrine Proxy directory "%s".', dirname($proxyCacheDir)));
+                    throw new \RuntimeException(sprintf('Unable to create the Doctrine Proxy directory "%s".', $proxyCacheDir));
                 }
             } elseif (!is_writable($proxyCacheDir)) {
                 throw new \RuntimeException(sprintf('The Doctrine Proxy directory "%s" is not writeable for the current system user.', $proxyCacheDir));