protected function SymfonyQuestionHelper::writeError in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Helper/SymfonyQuestionHelper.php \Symfony\Component\Console\Helper\SymfonyQuestionHelper::writeError()
Outputs an error message.
Parameters
OutputInterface $output:
\Exception $error:
Overrides QuestionHelper::writeError
File
- vendor/
symfony/ console/ Helper/ SymfonyQuestionHelper.php, line 95
Class
- SymfonyQuestionHelper
- Symfony Style Guide compliant question helper.
Namespace
Symfony\Component\Console\HelperCode
protected function writeError(OutputInterface $output, \Exception $error) {
if ($output instanceof SymfonyStyle) {
$output
->newLine();
$output
->error($error
->getMessage());
return;
}
parent::writeError($output, $error);
}