refactor commands

This commit is contained in:
Nicolas Le Goff
2012-06-01 11:39:58 +02:00
parent be1f81d39b
commit 20fc38bb5d
24 changed files with 34 additions and 81 deletions

View File

@@ -64,8 +64,9 @@ class module_console_taskState extends Command
public function execute(InputInterface $input, OutputInterface $output)
{
if ( ! $this->checkSetup($output)) {
try{
$this->checkSetup();
} catch (\RuntimeException $e){
return self::EXITCODE_SETUP_ERROR;
}