mirror of https://github.com/pixelfed/pixelfed.git
Merge pull request #4063 from ablyler/add-cloud-media-migration-error-logs
Add error logging for migrating to cloud storage failures
This commit is contained in:
commit
ec2c312d0e
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue