Skip to content

Commit

Permalink
[Command] Fixed error output in fixtures:load command
Browse files Browse the repository at this point in the history
  • Loading branch information
willdurand committed Sep 7, 2011
1 parent fa1b067 commit d1c64b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Command/FixturesLoadCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
}

if (!$this->absoluteFixturesPath && !file_exists($this->absoluteFixturesPath)) {
return $output->writeln('<info>The fixtures directory does not exist.</info>');
return $this->writeSection($output, array(
'The fixtures directory does not exist.'
), 'fg=white;bg=red');
}

$noOptions = (!$input->getOption('xml') && !$input->getOption('sql') && !$input->getOption('yml'));
Expand Down

0 comments on commit d1c64b2

Please sign in to comment.