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

Add Imagick exception handler #62

Merged
merged 1 commit into from Apr 20, 2021
Merged

Conversation

igmoweb
Copy link
Contributor

@igmoweb igmoweb commented Apr 19, 2021

generate_placehodlers ( https://github.com/humanmade/Gaussholder/blob/master/inc/jpeg/namespace.php#L214) can fail. I've seen files that come with width and height = 0 for some obscure reason. However, that error is not covered by the CLI command. This PR introduces a try/catch block to handle that error and displays a slightly different error with some Imagick context in it so the developer will be able to find out where the error is coming from easily.

@igmoweb igmoweb requested a review from roborourke April 19, 2021 10:39
@roborourke roborourke merged commit 8458501 into master Apr 20, 2021
@roborourke roborourke deleted the imagick-exception-error-message branch April 20, 2021 08:42
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

Successfully merging this pull request may close these issues.

None yet

2 participants