nlfiedler / magick-rust

Rust bindings for ImageMagick
https://crates.io/crates/magick_rust
Apache License 2.0
254 stars 68 forks source link

Add exceptions #121

Closed 5ohue closed 4 months ago

5ohue commented 4 months ago

This pull request replaces not so helpful MagickError("failed to resize image") with MagickError(self.get_exception()?.0)

This should in theory provide more helpful error messages. But in some cases there is no exception given when failure happens and user would just see Error: which is even less helpful than before :). I'm creating this pull request to basically propose this change but IDK if its worth it.

nlfiedler commented 4 months ago

Excellent, thank you.