summaryrefslogtreecommitdiffstats
path: root/application/libraries/Image
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-05-28 01:12:05 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-05-28 18:10:13 +0200
commit5a54560adc80cd3bc0da77b95ca740353fa5c680 (patch)
tree1b7b499082c66189e790758858d3404d82fe0510 /application/libraries/Image
parent9797836b2887d0edb70eb66f9c9d5bdb4bb49d15 (diff)
imagemagick: Use nested exception
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/libraries/Image')
-rw-r--r--application/libraries/Image/Drivers/imagemagick.php2
1 files changed, 1 insertions, 1 deletions
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"];