1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-24 00:35:59 +00:00

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

View file

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