From: Matthias Schmidt Date: Sun, 27 Nov 2016 14:49:23 +0000 (+0100) Subject: Add ImagickException as previous exception for SystemException X-Git-Tag: 3.0.0_RC_1~118 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5aba71a68a78bfb612cf74e63c78a3e9741f6aef;p=GitHub%2FWoltLab%2FWCF.git Add ImagickException as previous exception for SystemException --- 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);