diff options
author | Olivier Paroz <github@oparoz.com> | 2015-09-07 01:39:57 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-09-07 01:39:57 +0300 |
commit | a1c882b5fbfc2af2ec2f07353b5ea0112641e6d6 (patch) | |
tree | 9ee80c4ddc8abd82b90875d0598dbdb5d7fbbc8b /preview | |
parent | 490acb9ee85c4358a89a4bb97146b41c7166ef71 (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.php | 9 |
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; } |