Browse Source

[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 năm trước cách đây
mục cha
commit
a0fc4240f9
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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));
             }
         }