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