-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Add traceback data to error response when exceptions are raised #50
Add traceback data to error response when exceptions are raised #50
Conversation
- Django and Flask are not firm requirements set out in the setup.py so makes sense to not mark the tests as failed if they aren't installed.
Skip django/flask tests if not installed
Please let me know if there is a different way you'd like to go about this (assuming you find the addition useful). I didn't see a clear way to conditionally include this information based on whether the server was running in some sort of DEBUG mode. |
Just checking on whether there is any status update on this. |
Hi, @pipermerriam Sorry for my late update. I'm checking it out. |
Understood. What do you think about enabling this with some sort of flag? Something like |
…ion-from-errors Add traceback data to error response when exceptions are raised
…ion-from-errors Add traceback data to error response when exceptions are raised
…ion-from-errors Add traceback data to error response when exceptions are raised
What was wrong
Sometimes when an exception occurs on the server side the error response doesn't provide enough context to know where the error actually occurred. Currently the server returns the
str(e)
wheree
is the exception which was raised.How was it fixed.
Added another key to the error data
'traceback'
which contains the printed traceback data for the exception.Cute animal picture