Skip to content

Commit

Permalink
show returncode when logging command failure details
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@21158 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Nov 29, 2018
1 parent 38d980d commit 961fb29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unittests/unit/server_test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def show_proc_error(self, proc, msg):
if not proc:
raise Exception("command failed to start: %s" % msg)
log.warn("%s failed:", proc.command)
log.warn("returncode=%s", proc.poll())
def showfile(fileobj, filetype="stdout"):
if fileobj and fileobj.name and os.path.exists(fileobj.name):
log.warn("contents of %s file '%s':", filetype, fileobj.name)
Expand Down

0 comments on commit 961fb29

Please sign in to comment.