[LNT] r308229 - Include exception name in error output
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 17 15:51:44 PDT 2017
Author: cmatthews
Date: Mon Jul 17 15:51:43 2017
New Revision: 308229
URL: http://llvm.org/viewvc/llvm-project?rev=308229&view=rev
Log:
Include exception name in error output
Modified:
lnt/trunk/lnt/server/ui/app.py
Modified: lnt/trunk/lnt/server/ui/app.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/app.py?rev=308229&r1=308228&r2=308229&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/app.py (original)
+++ lnt/trunk/lnt/server/ui/app.py Mon Jul 17 15:51:43 2017
@@ -186,7 +186,7 @@ class App(LNTExceptionLoggerFlask):
response = jsonify({'error': 'internal server error', 'message': repr(e)})
response.status_code = 500
return response
- return render_template('error.html', message=e), 500
+ return render_template('error.html', message=repr(e)), 500
return app
More information about the llvm-commits
mailing list