From 5aba71a68a78bfb612cf74e63c78a3e9741f6aef Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 27 Nov 2016 15:49:23 +0100 Subject: [PATCH] Add ImagickException as previous exception for SystemException --- .../lib/system/image/adapter/ImagickImageAdapter.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php b/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php index f06caa2999..ba78d0f61e 100644 --- a/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php +++ b/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php @@ -78,7 +78,7 @@ class ImagickImageAdapter implements IImageAdapter { $this->imagick->readImage($file); } catch (\ImagickException $e) { - throw new SystemException("Image '".$file."' is not readable or does not exist."); + throw new SystemException("Image '".$file."' is not readable or does not exist.", 0, '', $e); } $this->readImageDimensions(); @@ -377,7 +377,7 @@ class ImagickImageAdapter implements IImageAdapter { $overlayImage = new \Imagick($file); } catch (\ImagickException $e) { - throw new SystemException("Image '".$file."' is not readable or does not exist."); + throw new SystemException("Image '".$file."' is not readable or does not exist.", 0, '', $e); } $overlayImage->evaluateImage(\Imagick::EVALUATE_MULTIPLY, $opacity, \Imagick::CHANNEL_OPACITY); -- 2.20.1