Merge pull request #2380 from Nicofuma/ticket/12474

[ticket/12474] The console command for updating/migrating the db should display the error with the <error> tag

* Nicofuma/ticket/12474:
  [ticket/12474] Error messages should be displayed with <error> tag
This commit is contained in:
Andreas Fischer 2014-05-02 19:50:01 +02:00
commit e2e6404a3b

View file

@ -65,7 +65,7 @@ class migrate extends \phpbb\console\command\command
} }
catch (\phpbb\db\migration\exception $e) catch (\phpbb\db\migration\exception $e)
{ {
$output->writeln($e->getLocalisedMessage($this->user)); $output->writeln('<error>' . $e->getLocalisedMessage($this->user) . '</error>');
$this->finalise_update(); $this->finalise_update();
return 1; return 1;
} }