✨ feat(Command): Ajoute des blocs try-catch pour gérer les exceptions lors du warmup.
This commit is contained in:
@@ -58,11 +58,17 @@ class AppWarmupImagesCommand extends Command
|
||||
$io->note('Le cache existant sera supprimé avant chaque génération.');
|
||||
|
||||
$io->section('Produits');
|
||||
$this->processCollection($products, 'imageFile', $io);
|
||||
try {
|
||||
$this->processCollection($products, 'imageFile', $io);
|
||||
} catch (\Exception $exception) {
|
||||
|
||||
}
|
||||
$io->section('Options');
|
||||
$this->processCollection($options, 'imageFile', $io);
|
||||
|
||||
try {
|
||||
$this->processCollection($options, 'imageFile', $io);
|
||||
}
|
||||
catch (\Exception $exception) {
|
||||
}
|
||||
$io->success('Toutes les images ont été régénérées avec succès.');
|
||||
|
||||
return Command::SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user