From fcb1f331db062558fda4d303e299abd80bf7c9e6 Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Wed, 14 Nov 2007 14:05:26 +0000
Subject: [PATCH] =?UTF-8?q?Give=20more=20details=20on=20errors=20when=20tr?=
 =?UTF-8?q?ying=20to=20run=20=E2=80=9Clvdisplay=E2=80=9D.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Reviewed-by: schreiberal
---
 lib/bdev.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bdev.py b/lib/bdev.py
index 38c327aa5..b18aa76d0 100644
--- a/lib/bdev.py
+++ b/lib/bdev.py
@@ -400,8 +400,8 @@ class LogicalVolume(BlockDev):
     """
     result = utils.RunCmd(["lvdisplay", self.dev_path])
     if result.failed:
-      logger.Error("Can't find LV %s: %s" %
-                   (self.dev_path, result.fail_reason))
+      logger.Error("Can't find LV %s: %s, %s" %
+                   (self.dev_path, result.fail_reason, result.output))
       return False
     match = re.compile("^ *Block device *([0-9]+):([0-9]+).*$")
     for line in result.stdout.splitlines():
-- 
GitLab