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 { 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) {