BmapCopy: improve error message
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Mon, 6 May 2013 10:16:46 +0000 (13:16 +0300)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Mon, 6 May 2013 14:58:51 +0000 (17:58 +0300)
Change-Id: I350b7beb9491bde82bbdad8890f147a7f69d14ab
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
bmaptools/BmapCopy.py

index 1e9c6f0..a3bc840 100644 (file)
@@ -470,7 +470,8 @@ class BmapCopy:
         # 'mapped_cnt' blocks.
         if blocks_written != self.mapped_cnt:
             raise Error("wrote %u blocks from image '%s' to '%s', but should " \
-                        "have %u - inconsistent bmap file '%s'" \
+                        "have %u - bmap file '%s' does not belong to this" \
+                        "image" \
                         % (blocks_written, self._image_path, self._dest_path, \
                            self.mapped_cnt, self._bmap_path))