$messages[] =
sprintf('<error> %s %s</error>', OutputFormatter::
escape($line[0
]),
str_repeat(' ',
$len -
$line[1
]));
} $messages[] =
$emptyLine;
$messages[] = '';
$output->
writeln($messages, OutputInterface::VERBOSITY_QUIET
);
if (OutputInterface::VERBOSITY_VERBOSE <=
$output->
getVerbosity()) { $output->
writeln('<comment>Exception trace:</comment>', OutputInterface::VERBOSITY_QUIET
);
// exception related properties
$trace =
$e->
getTrace();
array_unshift($trace,
[ 'function' => '',
'file' =>
$e->
getFile() ?: 'n/a',
'line' =>
$e->
getLine() ?: 'n/a',
'args' =>
[],
]);
for ($i = 0,
$count = \
count($trace);
$i <
$count; ++
$i) { $class =
$trace[$i]['class'
] ?? '';
$type =
$trace[$i]['type'
] ?? '';