randomouscrap98 / contentapi

A generic content system to make some kinda standard websites
GNU General Public License v3.0
9 stars 2 forks source link

Report memory errors from imagemagick #149

Open randomouscrap98 opened 2 years ago

randomouscrap98 commented 2 years ago

When imagemagick fails because it runs out of memory, the users just get a big ugly exception detailing that it "exited with code 1". You'll probably have to parse the stderr to find certain kinds of errors, OR just put a generic RequestException with a generic message on process error suggesting it MIGHT be the memory