Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Do not fail miserably if we don't have proper json during error 500 #220
Currently, if we encounter an error 500, we assume we got a json with a few properties defined and attempt to parse it. However for some reason we might not get such a json and the admin will fail miserably and pacman will keep running forever (and nothing is displayed to the user).
This is related to YunoHost/issues#1196 though I don't expect if to be 100% of the root cause.
I don't know what's a proper solution, I just added a quick and dirty try/catch so that the code doesn't fail miserably and shows the raw
In which we fed proper json-formatted data. However, I now realize that here :
some "simple" MoulinetteError with specific