mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Add error pages, fix error handling and PHP conf
This commit is contained in:
@@ -40,8 +40,8 @@ class module_console_systemClearCache extends Command
|
||||
->exclude('.git')
|
||||
->exclude('.svn')
|
||||
->in(array(
|
||||
__DIR__ . '/../../../../tmp/cache_minify/',
|
||||
__DIR__ . '/../../../../tmp/cache_twig/'
|
||||
$this->container['root.path'] . '/tmp/cache_minify/',
|
||||
$this->container['root.path'] . '/tmp/cache_twig/'
|
||||
));
|
||||
|
||||
$filesystem = new Filesystem();
|
||||
|
@@ -20,6 +20,7 @@ use Symfony\Component\Console\Input\InputArgument;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
class module_console_taskState extends Command
|
||||
{
|
||||
@@ -80,7 +81,7 @@ class module_console_taskState extends Command
|
||||
$task = $task_manager->getTask($task_id);
|
||||
$taskPID = $task->getPID();
|
||||
$taskState = $task->getState();
|
||||
} catch (Exception_NotFound $e) {
|
||||
} catch (NotFoundHttpException $e) {
|
||||
$output->writeln($input->getOption('short') ? 'unknown_id' : $e->getMessage());
|
||||
|
||||
return self::EXITCODE_TASK_UNKNOWN;
|
||||
|
Reference in New Issue
Block a user