Browse Source

BC's change to show actual error rather than just error in middleware

Marcus McLaughlin 15 years ago
parent
commit
0f40ccb3a7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      desktop/core/src/desktop/middleware.py

+ 1 - 0
desktop/core/src/desktop/middleware.py

@@ -79,6 +79,7 @@ class ExceptionMiddleware(object):
     # Note that exception may actually be an Http404 or similar.
     if request.ajax:
       err = "An error occurred: " + str(exception)
+      logging.exception("Middleware caught an exception")
       return PopupException(err, detail=None).response(request)
 
     return None