Skip to content

Commit

Permalink
[FrameworkBundle] partially reverted previous merge
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Oct 14, 2012
1 parent 98070d5 commit dc51984
Showing 1 changed file with 2 additions and 6 deletions.
Expand Up @@ -26,10 +26,6 @@
*/
class TranslationUpdateCommand extends ContainerAwareCommand
{
const RETURN_CODE_MISSING_OPTIONS = 1;

const RETURN_CODE_UNSUPPORTED_FORMAT = 2;

/**
* Compiled catalogue of messages.
* @var MessageCatalogue
Expand Down Expand Up @@ -86,7 +82,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
if ($input->getOption('force') !== true && $input->getOption('dump-messages') !== true) {
$output->writeln('<info>You must choose one of --force or --dump-messages</info>');

return self::RETURN_CODE_MISSING_OPTIONS;
return 1;
}

// check format
Expand All @@ -96,7 +92,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$output->writeln('<error>Wrong output format</error>');
$output->writeln('Supported formats are '.implode(', ', $supportedFormats).'.');

return self::RETURN_CODE_UNSUPPORTED_FORMAT;
return 1;
}

// get bundle directory
Expand Down

0 comments on commit dc51984

Please sign in to comment.