Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error messages? #49

Open
vpzomtrrfrt opened this issue Apr 16, 2019 · 3 comments
Open

Better error messages? #49

vpzomtrrfrt opened this issue Apr 16, 2019 · 3 comments

Comments

@vpzomtrrfrt
Copy link

The functions in this crate return very generic error messages, like "failed to write image". Would it be possible to give more information about exactly what failed?

@nlfiedler
Copy link
Owner

It looks like someone has already introduced bindings for MagickGetExceptionType() and MagickGetException() on the wand object, named get_exception_type() and get_exception(), respectively. I haven't maintained this library in some time, so I can't provide an example, but I suspect it should be as easy as calling those functions.

@vpzomtrrfrt
Copy link
Author

Looks like those are private?

@nlfiedler
Copy link
Owner

Shoot, sorry about that. I made them public and pushed an update. Let me know if that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants