Skip to content

Commit

Permalink
Merge pull request #41233 from nextcloud/stable26-catchImaginaryErrors
Browse files Browse the repository at this point in the history
[stable26] Catch Imaginary processing errors
  • Loading branch information
st3iny authored Nov 13, 2023
2 parents 496a68d + 45f1eb2 commit 448fa06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Preview/Imaginary.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function getCroppedThumbnail(File $file, int $maxX, int $maxY, bool $crop
'timeout' => 120,
'connect_timeout' => 3,
]);
} catch (\Exception $e) {
} catch (\Throwable $e) {
$this->logger->error('Imaginary preview generation failed: ' . $e->getMessage(), [
'exception' => $e,
]);
Expand Down

0 comments on commit 448fa06

Please sign in to comment.