You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.
Can you try to print out error logs to the console when an error occurs? You seem to discard 'err' variables and it's hard to debug with no information.
I tried to upload an image and it failed with no logging. It turned out that I hadn't installed 'gm' command but it could be better if 'err' content was printed in the server as console.error.
Steps to Reproduce
Do not install graphicsmagick
node app
Upload an image
Additional info
Postleaf version: 1.0.0-beta.1
Node version: 8.9.4
Affected browsers:
Operating system: Ubuntu 16.04
The text was updated successfully, but these errors were encountered:
'err' is not used and the only message I get is that it didn't work out well but if you can even simply 'console.error(`Saving the image to a file failed : ${err}`)', this will let people figure out what just happened.
That's definitely true for a dev environment where you have the console available — and I fully agree better error messages need to be in place (even if just for the user). Thanks for pointing this out.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Summary
Can you try to print out error logs to the console when an error occurs? You seem to discard 'err' variables and it's hard to debug with no information.
I tried to upload an image and it failed with no logging. It turned out that I hadn't installed 'gm' command but it could be better if 'err' content was printed in the server as console.error.
Steps to Reproduce
Additional info
The text was updated successfully, but these errors were encountered: