mirror of
https://github.com/Intervention/image.git
synced 2025-08-22 21:42:53 +02:00
Merge pull request #496 from goto-bus-stop/chain-exceptions
Chain Imagick exceptions instead of hiding
This commit is contained in:
@@ -23,7 +23,9 @@ class Decoder extends \Intervention\Image\AbstractDecoder
|
|||||||
|
|
||||||
} catch (\ImagickException $e) {
|
} catch (\ImagickException $e) {
|
||||||
throw new \Intervention\Image\Exception\NotReadableException(
|
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) {
|
} catch (\ImagickException $e) {
|
||||||
throw new \Intervention\Image\Exception\NotReadableException(
|
throw new \Intervention\Image\Exception\NotReadableException(
|
||||||
"Unable to read image from binary data."
|
"Unable to read image from binary data.",
|
||||||
|
0,
|
||||||
|
$e
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user