Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[error] Include config in the report

  • Loading branch information...
commit 62bb6195326c8de510de2a10c00ad84f4bc65fcd 1 parent 4426a06
Eugene Pankov Eugeny authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 ajenti/error.py
6 ajenti/error.py
View
@@ -34,13 +34,17 @@ def make_report(app, err):
'Detected platform: %s\n' +
'Detected distro: %s\n' +
'Python: %s\n\n' +
- 'Loaded plugins:\n%s\n\n' +
+ 'Config path: %s\n\n' +
+ 'Config content:\n%s\n' +
+ '\n\nLoaded plugins:\n%s\n\n' +
'%s')
% (version,
shell('uname -a'),
detect_platform(),
detect_distro(),
'.'.join([str(x) for x in platform.python_version_tuple()]),
+ app.config.filename,
+ open(app.config.filename).read(),
pr,
err
))
Please sign in to comment.
Something went wrong with that request. Please try again.