Add exception as description of internal error of user_application

issue6255
review29991002
This commit is contained in:
Cédric Krier committed 2017-02-14 23:37:16 +01:00
1 parent f2a60e1127
commit 05972ae818
1 file changed
+1 -1
+1 -1
View File
@@ -170,7 +170,7 @@ def user_application(name, json=True):
if isinstance(e, HTTPException):
raise
logger.error('%s', request, exc_info=True)
abort(500)
abort(500, e)
if not isinstance(response, Response) and json:
response = Response(json_.dumps(response, cls=JSONEncoder),
content_type='application/json')