Merge "worlddump: log command failure details"

This commit is contained in:
Jenkins 2016-03-07 14:30:11 +00:00 committed by Gerrit Code Review
commit a53f01e188
1 changed files with 2 additions and 2 deletions

View File

@ -58,8 +58,8 @@ def _dump_cmd(cmd):
try:
subprocess.check_call(cmd, shell=True)
print
except subprocess.CalledProcessError:
print "*** Failed to run: %s" % cmd
except subprocess.CalledProcessError as e:
print "*** Failed to run '%(cmd)s': %(err)s" % {'cmd': cmd, 'err': e}
def _find_cmd(cmd):