]> git.siccegge.de Git - forks/vmdebootstrap.git/commitdiff
Log stdout also on errors.
authorLars Wirzenius <liw@liw.fi>
Sun, 15 May 2011 09:54:41 +0000 (10:54 +0100)
committerLars Wirzenius <liw@liw.fi>
Sun, 15 May 2011 09:54:41 +0000 (10:54 +0100)
vmdebootstrap

index 7847c2331f3027fc9ad19fdc9994fa3688ef7ad1..6d0578207e3934a4629224f6f25496549ba52255 100755 (executable)
@@ -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)