diff options
author | Robin Appelman <robin@icewind.nl> | 2020-04-09 15:59:18 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2020-04-10 13:39:45 +0200 |
commit | 8f9bac26f874e105c017de2b1791b23c2a135b28 (patch) | |
tree | 4b00af523cfb211e021792f2dc60181ad38600b5 /lib/private/Preview/Generator.php | |
parent | 7d386872e5f4c5530a936465f71b4e1ea85a565e (diff) | |
download | nextcloud-server-8f9bac26f874e105c017de2b1791b23c2a135b28.tar.gz nextcloud-server-8f9bac26f874e105c017de2b1791b23c2a135b28.zip |
fix preview generation tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Preview/Generator.php')
-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 . '"'); } } } |