cmd: catch all indexing errors

pull/317/head
Varun Patil 2022-12-22 10:49:06 -08:00
parent 78905bff8e
commit 70f3fbaea1
1 changed files with 2 additions and 1 deletions

View File

@ -291,12 +291,13 @@ class Index extends Command
try {
$res = $this->timelineWrite->processFile($file, $refresh);
} catch (\Exception $e) {
} catch (\Error $e) {
$this->output->writeln(sprintf(
'<error>Could not process file %s: %s</error>',
$file->getPath(),
$e->getMessage()
));
$this->output->writeln($e->getTraceAsString());
}
if (2 === $res) {