Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-04-09 16:59:18 +0300
committerRobin Appelman <robin@icewind.nl>2020-04-10 14:39:45 +0300
commit8f9bac26f874e105c017de2b1791b23c2a135b28 (patch)
tree4b00af523cfb211e021792f2dc60181ad38600b5 /lib
parent7d386872e5f4c5530a936465f71b4e1ea85a565e (diff)
fix preview generation tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Preview/Generator.php4
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 . '"');
}
}
}