takeout: add catch block to migrateFile

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
pull/504/head
Varun Patil 2023-03-16 23:51:19 -07:00
parent e301ee84cb
commit 758beab34e
1 changed files with 5 additions and 1 deletions

View File

@ -143,7 +143,11 @@ class MigrateGoogleTakeout extends Command
if ($node instanceof Folder) {
$this->migrateFolder($node);
} elseif ($node instanceof File) {
$this->migrateFile($node);
try {
$this->migrateFile($node);
} catch (\Exception $e) {
$this->output->writeln("<error>Error migrating file {$node->getPath()}: {$e->getMessage()}</error>");
}
}
}
}