Return the error message to the end user

This commit is contained in:
2011-01-23 13:41:04 +00:00
parent b6bec681e1
commit e61ac1ef08

View File

@@ -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)