1
0
Fork 0

Add error logging for migrating to cloud storage failures

This commit is contained in:
Andy Blyler 2023-01-04 11:54:41 -05:00
parent 4ce43f4928
commit 82bd1512fe
1 changed files with 3 additions and 0 deletions

View File

@ -66,10 +66,13 @@ class CloudMediaMigrate extends Command
try {
MediaStorageService::store($media);
} catch (FileNotFoundException $e) {
$this->error('Error migrating media ' . $media->id . ' to cloud storage: ' . $e->getMessage());
return;
} catch (NotFoundHttpException $e) {
$this->error('Error migrating media ' . $media->id . ' to cloud storage: ' . $e->getMessage());
return;
} catch (\Exception $e) {
$this->error('Error migrating media ' . $media->id . ' to cloud storage: ' . $e->getMessage());
return;
}
}