Prechádzať zdrojové kódy

[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 rokov pred
rodič
commit
a0fc4240f9

+ 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));
             }
         }