Przeglądaj źródła

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

Marcus McLaughlin 15 lat temu
rodzic
commit
0f40ccb3a7
1 zmienionych plików z 1 dodań i 0 usunięć
  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