[ostree] ostbuild: Show cwd on failure
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] ostbuild: Show cwd on failure
- Date: Thu, 19 Jan 2012 21:42:43 +0000 (UTC)
commit abfe17e2cba0a026911d17b00ad6174009707c81
Author: Colin Walters <walters verbum org>
Date: Thu Jan 19 16:41:59 2012 -0500
ostbuild: Show cwd on failure
This is helpful for disambiguation.
src/ostbuild/pyostbuild/subprocess_helpers.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/ostbuild/pyostbuild/subprocess_helpers.py b/src/ostbuild/pyostbuild/subprocess_helpers.py
index 66e365b..0d1ca8d 100755
--- a/src/ostbuild/pyostbuild/subprocess_helpers.py
+++ b/src/ostbuild/pyostbuild/subprocess_helpers.py
@@ -63,7 +63,8 @@ def run_sync_get_output(args, cwd=None, env=None, stdout=None, stderr=None, none
else:
logfn = None
if logfn is not None:
- logfn("cmd '%s' exited with code %d, %d bytes of output" % (subprocess.list2cmdline(args), proc.returncode, len(output)))
+ logfn("cmd '%s' (cwd=%s) exited with code %d, %d bytes of output" % (subprocess.list2cmdline(args),
+ cwd, proc.returncode, len(output)))
if proc.returncode == 0:
return output
return None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]