From 05972ae818752bdb91c7a3b49237466d193c926c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 14 Feb 2017 23:37:16 +0100 Subject: [PATCH] Add exception as description of internal error of user_application issue6255 review29991002 --- trytond/protocols/wrappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/protocols/wrappers.py b/trytond/protocols/wrappers.py index cec57e73df..e0f1b11299 100644 --- a/trytond/protocols/wrappers.py +++ b/trytond/protocols/wrappers.py @@ -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')