Add exception as description of internal error of user_application
issue6255 review29991002
This commit is contained in:
1 parent
f2a60e1127
commit
05972ae818
1 file changed
+1
-1
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user