diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Preview/Generator.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Preview/Generator.php b/lib/private/Preview/Generator.php index eedf80d8522..cf57f9474f1 100644 --- a/lib/private/Preview/Generator.php +++ b/lib/private/Preview/Generator.php @@ -182,7 +182,7 @@ class Generator { $preview = $this->generatePreview($previewFolder, $maxPreviewImage, $width, $height, $crop, $maxWidth, $maxHeight, $previewVersion); } } catch (\InvalidArgumentException $e) { - throw new NotFoundException(); + throw new NotFoundException("", 0, $e); } if ($preview->getSize() === 0) { @@ -478,7 +478,7 @@ class Generator { case 'image/gif': return 'gif'; default: - throw new \InvalidArgumentException('Not a valid mimetype'); + throw new \InvalidArgumentException('Not a valid mimetype: "' . $mimeType . '"'); } } } |