From: Artem Bityutskiy Date: Tue, 28 Jan 2014 12:10:14 +0000 (+0200) Subject: bmaptool: handle TransRead errors X-Git-Tag: v3.2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce9bd35f1a34be11f0c7a6c34b0f26d30b8c004f;p=tools%2Fbmap-tools.git 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 --- 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)