Skip to content

Commit

Permalink
Print the error when an exception is thrown due to a non-zero return …
Browse files Browse the repository at this point in the history
…code from calling `trac-admin`.
  • Loading branch information
rjollos committed Feb 27, 2013
1 parent 1435d19 commit 01e5283
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions trac/tests/functional/testenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,9 @@ def _tracadmin(self, *args):
if proc.returncode:
print(out)
logfile.write(out)
raise Exception('Failed with exitcode %s running trac-admin ' \
'with %r' % (proc.returncode, args))
raise Exception("Failed while running trac-admin with arguments %r.\n"
"Exitcode: %s \n%s"
% (args, proc.returncode, out))

def start(self):
"""Starts the webserver, and waits for it to come up."""
Expand Down

0 comments on commit 01e5283

Please sign in to comment.