[bmap-tools] [PATCH 7/9] bmaptool: handle TransRead errors
Artem Bityutskiy
dedekind1 at gmail.com
Tue Jan 28 08:45:59 EST 2014
From: Artem Bityutskiy <artem.bityutskiy at intel.com>
Catch both BmapCopy and TransRead module errors since they all contain
a user-friendly error message.
Change-Id: If8acb95abba1f3edd178674da152d09b63ed6819
Signed-off-by: Artem Bityutskiy <artem.bityutskiy at intel.com>
---
bmaptool | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bmaptool b/bmaptool
index 56d42c4..9ffffa5 100755
--- a/bmaptool
+++ b/bmaptool
@@ -486,7 +486,7 @@ def copy_command(args, log):
try:
try:
writer.copy(False, not args.no_verify)
- except BmapCopy.Error as err:
+ except (BmapCopy.Error, TransRead.Error) as err:
log.error(str(err))
raise SystemExit(1)
--
1.8.3.1
More information about the Bmap-tools
mailing list