[WebBundle] made some error messages better
This commit is contained in:
parent
e36b981562
commit
1d8a65a1b5
@ -5,9 +5,7 @@ namespace Symfony\Foundation\Bundle;
|
||||
use Symfony\Foundation\Bundle\Bundle;
|
||||
use Symfony\Foundation\ClassCollectionLoader;
|
||||
use Symfony\Components\DependencyInjection\ContainerInterface;
|
||||
use Symfony\Components\DependencyInjection\Container;
|
||||
use Symfony\Components\DependencyInjection\Loader\Loader;
|
||||
use Symfony\Components\Debug\ErrorHandler;
|
||||
|
||||
/*
|
||||
* This file is part of the symfony framework.
|
||||
|
@ -267,7 +267,7 @@ abstract class Kernel
|
||||
{
|
||||
if (false === @mkdir($parameters['kernel.cache_dir'], 0777, true))
|
||||
{
|
||||
die(sprintf('Unable to write in the cache directory (%s)', dirname($parameters['kernel.cache_dir'])));
|
||||
die(sprintf('Unable to create the cache directory (%s)', $parameters['kernel.cache_dir']));
|
||||
}
|
||||
}
|
||||
elseif (!is_writable($parameters['kernel.cache_dir']))
|
||||
@ -280,12 +280,12 @@ abstract class Kernel
|
||||
{
|
||||
if (false === @mkdir($parameters['kernel.logs_dir'], 0777, true))
|
||||
{
|
||||
die(sprintf('Failed to write in the logs directory (%s)', dirname($parameters['kernel.logs_dir'])));
|
||||
die(sprintf('Unable to create the logs directory (%s)', $parameters['kernel.logs_dir']));
|
||||
}
|
||||
}
|
||||
elseif (!is_writable($parameters['kernel.logs_dir']))
|
||||
{
|
||||
die(sprintf('Failed to write in the logs directory (%s)', $parameters['kernel.logs_dir']));
|
||||
die(sprintf('Unable to write in the logs directory (%s)', $parameters['kernel.logs_dir']));
|
||||
}
|
||||
|
||||
// cache the container
|
||||
|
@ -39,9 +39,7 @@ namespace Symfony\Foundation\Bundle;
|
||||
use Symfony\Foundation\Bundle\Bundle;
|
||||
use Symfony\Foundation\ClassCollectionLoader;
|
||||
use Symfony\Components\DependencyInjection\ContainerInterface;
|
||||
use Symfony\Components\DependencyInjection\Container;
|
||||
use Symfony\Components\DependencyInjection\Loader\Loader;
|
||||
use Symfony\Components\Debug\ErrorHandler;
|
||||
|
||||
|
||||
|
||||
@ -536,7 +534,7 @@ abstract class Kernel
|
||||
{
|
||||
if (false === @mkdir($parameters['kernel.cache_dir'], 0777, true))
|
||||
{
|
||||
die(sprintf('Unable to write in the cache directory (%s)', dirname($parameters['kernel.cache_dir'])));
|
||||
die(sprintf('Unable to create the cache directory (%s)', $parameters['kernel.cache_dir']));
|
||||
}
|
||||
}
|
||||
elseif (!is_writable($parameters['kernel.cache_dir']))
|
||||
@ -548,12 +546,12 @@ abstract class Kernel
|
||||
{
|
||||
if (false === @mkdir($parameters['kernel.logs_dir'], 0777, true))
|
||||
{
|
||||
die(sprintf('Failed to write in the logs directory (%s)', dirname($parameters['kernel.logs_dir'])));
|
||||
die(sprintf('Unable to create the logs directory (%s)', $parameters['kernel.logs_dir']));
|
||||
}
|
||||
}
|
||||
elseif (!is_writable($parameters['kernel.logs_dir']))
|
||||
{
|
||||
die(sprintf('Failed to write in the logs directory (%s)', $parameters['kernel.logs_dir']));
|
||||
die(sprintf('Unable to write in the logs directory (%s)', $parameters['kernel.logs_dir']));
|
||||
}
|
||||
|
||||
$dumper = new PhpDumper($container);
|
||||
|
Reference in New Issue
Block a user