diff --git a/src/Commands/RebuildThumbnails.php b/src/Commands/RebuildThumbnails.php index 90cd803..ad3b0f6 100644 --- a/src/Commands/RebuildThumbnails.php +++ b/src/Commands/RebuildThumbnails.php @@ -45,7 +45,12 @@ class RebuildThumbnails extends Command $records = $this->query->filter(["schema" => $schema->name])->run()->records; $disk = $this->fileService->loadDisk($schema->disk); foreach ($records as $record) { - $this->fileService->createTemplates($disk, $record->_file->path); + try{ + + $this->fileService->createTemplates($disk, $record->_file->path); + } catch (Exception $e) { + echo "File ". $record->_file->originalName . " could not be rebuilt \n" ; + } } }