takeout: add catch block to migrateFile
Signed-off-by: Varun Patil <varunpatil@ucla.edu>pull/504/head
parent
e301ee84cb
commit
758beab34e
|
@ -143,7 +143,11 @@ class MigrateGoogleTakeout extends Command
|
||||||
if ($node instanceof Folder) {
|
if ($node instanceof Folder) {
|
||||||
$this->migrateFolder($node);
|
$this->migrateFolder($node);
|
||||||
} elseif ($node instanceof File) {
|
} 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>");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue