cmd: catch all indexing errors
parent
78905bff8e
commit
70f3fbaea1
|
@ -291,12 +291,13 @@ class Index extends Command
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$res = $this->timelineWrite->processFile($file, $refresh);
|
$res = $this->timelineWrite->processFile($file, $refresh);
|
||||||
} catch (\Exception $e) {
|
} catch (\Error $e) {
|
||||||
$this->output->writeln(sprintf(
|
$this->output->writeln(sprintf(
|
||||||
'<error>Could not process file %s: %s</error>',
|
'<error>Could not process file %s: %s</error>',
|
||||||
$file->getPath(),
|
$file->getPath(),
|
||||||
$e->getMessage()
|
$e->getMessage()
|
||||||
));
|
));
|
||||||
|
$this->output->writeln($e->getTraceAsString());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (2 === $res) {
|
if (2 === $res) {
|
||||||
|
|
Loading…
Reference in New Issue