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

Report errors from backend when a request fails (attempt 2) #148

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

confused-Techie
Copy link
Member

After we merged #147 it created significant conflicts with my original PR (as it touched all the exact same places my PR did). So for the benefit of the contributor we merged that one first, and I reworked this one.

If you'd like to read more about the original intentions of this PR (which are the same across the two attempts) feel free to look at #139


A major pain point for community package authors is that nearly every error on the backend is returned with Internal Server Error. I ensured to create as helpful of error messages as possible to try to alleviate this, until I learned that PPM itself was discarding those error messages and just returning a status code.

There were already hints in the code at wanting to fix this via request.getErrorMessage() but it is severely under-utilized. So all this PR does is ensure we use it everywhere applicable. So that our users always are getting the best error message possible.

Again for a more in-depth explanation feel free to refer to #139

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.

1 participant