feat(Command): Ajoute des blocs try-catch pour gérer les exceptions lors du warmup.

This commit is contained in:
Serreau Jovann
2026-02-05 08:43:38 +01:00
parent 5637bf8cc6
commit 70ffdf9529

View File

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