Add error logging for migrating to cloud storage failures

pull/4063/head
Andy Blyler 2023-01-04 11:54:41 -05:00
rodzic 4ce43f4928
commit 82bd1512fe
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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;
}
}