浏览代码

[HttpKernel] Adding a line break to the end of the Kernel die() statements so that the output is more natural when receiving this message from the terminal.

Ryan Weaver 14 年之前
父节点
当前提交
a0fc4240f9
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Symfony/Component/HttpKernel/Kernel.php

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

@@ -480,10 +480,10 @@ abstract class Kernel implements KernelInterface
             $dir = $container->getParameter(sprintf('kernel.%s_dir', $name));
             if (!is_dir($dir)) {
                 if (false === @mkdir($dir, 0777, true)) {
-                    die(sprintf('Unable to create the %s directory (%s)', $name, dirname($dir)));
+                    die(sprintf("Unable to create the %s directory (%s)\n", $name, dirname($dir)));
                 }
             } elseif (!is_writable($dir)) {
-                die(sprintf('Unable to write in the %s directory (%s)', $name, $dir));
+                die(sprintf("Unable to write in the %s directory (%s)\n", $name, $dir));
             }
         }