From 5a54560adc80cd3bc0da77b95ca740353fa5c680 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 28 May 2015 01:12:05 +0200 Subject: imagemagick: Use nested exception Signed-off-by: Florian Pritz --- application/libraries/Image/Drivers/imagemagick.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application/libraries/Image/Drivers/imagemagick.php') diff --git a/application/libraries/Image/Drivers/imagemagick.php b/application/libraries/Image/Drivers/imagemagick.php index e37b9c8b3..fb4e4d88f 100644 --- a/application/libraries/Image/Drivers/imagemagick.php +++ b/application/libraries/Image/Drivers/imagemagick.php @@ -72,7 +72,7 @@ class imagemagick implements \libraries\Image\ImageDriver { try { $ret = (new \libraries\ProcRunner($command))->execSafe(); } catch (\exceptions\ApiException $e) { - throw new \exceptions\ApiException("libraries/Image/thumbnail-creation-failed", "Failed to create thumbnail"); + throw new \exceptions\ApiException("libraries/Image/thumbnail-creation-failed", "Failed to create thumbnail", null, $e); } return $ret["stdout"]; -- cgit v1.2.3-24-g4f1b