Explorar o código

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

Marcus McLaughlin %!s(int64=15) %!d(string=hai) anos
pai
achega
0f40ccb3a7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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