From ce9bd35f1a34be11f0c7a6c34b0f26d30b8c004f Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Tue, 28 Jan 2014 14:10:14 +0200 Subject: [PATCH] bmaptool: handle TransRead errors Catch both BmapCopy and TransRead module errors since they all contain a user-friendly error message. Change-Id: If8acb95abba1f3edd178674da152d09b63ed6819 Signed-off-by: Artem Bityutskiy --- 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) -- 2.7.4