Sfoglia il codice sorgente

[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 anni fa
parent
commit
a0fc4240f9
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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));
             }
         }