From 96b6c1bee590500030a5ad25b47e9d57f1957fc4 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 15 May 2011 10:54:41 +0100 Subject: [PATCH] Log stdout also on errors. --- vmdebootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5