1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-22 13:32:56 +02:00

Merge pull request #496 from goto-bus-stop/chain-exceptions

Chain Imagick exceptions instead of hiding
This commit is contained in:
Oliver Vogel
2016-01-10 12:20:02 +01:00

View File

@@ -23,7 +23,9 @@ class Decoder extends \Intervention\Image\AbstractDecoder
} catch (\ImagickException $e) {
throw new \Intervention\Image\Exception\NotReadableException(
"Unable to read image from path ({$path})."
"Unable to read image from path ({$path}).",
0,
$e
);
}
@@ -81,7 +83,9 @@ class Decoder extends \Intervention\Image\AbstractDecoder
} catch (\ImagickException $e) {
throw new \Intervention\Image\Exception\NotReadableException(
"Unable to read image from binary data."
"Unable to read image from binary data.",
0,
$e
);
}