Skip to content

Commit

Permalink
fix error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
mgax committed Aug 20, 2013
1 parent 698e752 commit 8dd4439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rq_dashboard/dashboard.py
Expand Up @@ -47,9 +47,9 @@ def _wrapped(*args, **kwargs):
except Exception as e:
result_dict = dict(status='error')
if current_app.config['DEBUG']:
result_dict['reason'] = e.message
result_dict['reason'] = str(e)
from traceback import format_exc
result_dict['exc_info'] = format_exc(e)
result_dict['exc_info'] = format_exc()
return flask_jsonify(**result_dict)
return _wrapped

Expand Down

0 comments on commit 8dd4439

Please sign in to comment.