-
Notifications
You must be signed in to change notification settings - Fork 90
Improve error handling #37
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
Conversation
|
Test valid file type with warning is failing. |
|
All tests pass for me. I think the warning sent by imagemagick depends on version.
display: for version: Can you please, check the output for your ImageMagick version ? I will remove warning test if it turned out. |
|
ImageMagick 6.8.9-5 Q16 x86_64 2014-07-25 |
|
Ok. And the output for the command:
|
|
PNG 8 1024 1024 20634B 28.350000000000001421 letter.png |
|
Thanks ! So warnings sent depend on ImageMagick version. I will remove the warning test. If you have any ideas to test for warnings sent, please let me known. |
|
Well this works for me. Before this i was just bypassing the whole error handling regex by putting a placeholder like /^error:/ or something so that it gets the information about png files. |
|
Yes, it seems that displayed warnings depend on installed version of ImageMagick so unit tests for this specific case are very difficult to made. If you have any ideas to test for this case, please let me known I will add a commit. |
|
Well writing unit tests will be a difficult task to do since we need dependencies based on the version of imageMagick. Otherwise we can create conditions based on specific imageMagick versions. |
|
Yes, of course. I will wait for the response of repo owner. Thanks. |
Currently when imagemagick display warnings like this:
node-easyimage takes this as fatal error and return immediately with a
File not supportederror.I've updated error handling to manage the case where warnings are returned in
stderralongs with response instdout. I've also passedstderras Error message rather than unhelpfulFile not supportederror.