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

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-09-07 01:39:57 +0300
committerOlivier Paroz <github@oparoz.com>2015-09-07 01:39:57 +0300
commita1c882b5fbfc2af2ec2f07353b5ea0112641e6d6 (patch)
tree9ee80c4ddc8abd82b90875d0598dbdb5d7fbbc8b /preview
parent490acb9ee85c4358a89a4bb97146b41c7166ef71 (diff)
Use exceptions more in Preview chain
* jsonhttperror trait is now named httperror * Moved ServiceTest to GalleryUnitTest * Move some common test methods to GalleryUnitTest * Additional unit tests for PreviewService
Diffstat (limited to 'preview')
-rw-r--r--preview/preview.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/preview/preview.php b/preview/preview.php
index 014722fd..20796396 100644
--- a/preview/preview.php
+++ b/preview/preview.php
@@ -172,7 +172,6 @@ class Preview {
* @return \OC_Image
*/
private function getPreviewFromCore($keepAspect) {
- //$this->logger->debug("[PreviewService] Fetching the preview");
list($maxX, $maxY) = $this->dims;
$this->preview->setMaxX($maxX);
@@ -181,12 +180,8 @@ class Preview {
$this->preview->setKeepAspect($keepAspect);
//$this->logger->debug("[PreviewService] preview {preview}", ['preview' => $this->preview]);
- try {
- // Can generate encryption Exceptions...
- $previewData = $this->preview->getPreview();
- } catch (\Exception $exception) {
- return null;
- }
+
+ $previewData = $this->preview->getPreview();
return $previewData;
}