From: Lars Wirzenius Date: Sun, 15 May 2011 09:54:41 +0000 (+0100) Subject: Log stdout also on errors. X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=96b6c1bee590500030a5ad25b47e9d57f1957fc4;p=forks%2Fvmdebootstrap.git Log stdout also on errors. --- diff --git a/vmdebootstrap b/vmdebootstrap index 7847c23..6d05782 100755 --- a/vmdebootstrap +++ b/vmdebootstrap @@ -91,7 +91,7 @@ class VmDebootstrap(cliapp.Application): **kwargs) out, err = p.communicate(stdin) if p.returncode != 0: - msg = 'command failed: %s\n%s' % (argv, err) + msg = 'command failed: %s\n%s\n%s' % (argv, out, err) logging.error(msg) if not ignore_fail: raise cliapp.AppException(msg)