mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Return the error message to the end user
This commit is contained in:
@@ -116,8 +116,8 @@ class EveAPIProxyHandler(BaseHandler):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
cached_doc = CachedDocument.objects.api_query(url_path, params)
|
cached_doc = CachedDocument.objects.api_query(url_path, params)
|
||||||
except DocumentRetrievalError:
|
except DocumentRetrievalError, exc:
|
||||||
return HttpResponse(status=500)
|
return HttpResponse(exc, status=500)
|
||||||
else:
|
else:
|
||||||
return HttpResponse(cached_doc.body)
|
return HttpResponse(cached_doc.body)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user