From d98e5eaf3620d5fc7d0dfc62ea1339c37732b78e Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sun, 9 Dec 2007 09:47:43 +0000 Subject: [PATCH] Fixed bug in error reporting of failing shell commands. --- support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support.py b/support.py index 12dc27a..a877243 100644 --- a/support.py +++ b/support.py @@ -12,7 +12,7 @@ release_status_file = 'release-status' def check_call(*args, **kwargs): exitstatus = subprocess.call(*args, **kwargs) if exitstatus != 0: - raise SafeException("Command %s failed with exit code %d" % (' '.join(args), exitstatus)) + raise SafeException("Command failed with exit code %d:\n%s" % (exitstatus, ' '.join(args[0]))) def show_and_run(cmd, args): print "Executing: %s %s" % (cmd, ' '.join("[%s]" % x for x in args)) -- 2.11.4.GIT