BmapCreate: catch exception from the Filemap module
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 22 Jan 2014 10:12:15 +0000 (12:12 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 22 Jan 2014 10:12:15 +0000 (12:12 +0200)
commitff0fb3892b1bc9c1db925c316af60637dfeb24f5
tree11df9a3a6bcb5110f5f26ee36204708150cf3d8d
parent39ae763229da20664d5eb1673c307e40353c225b
BmapCreate: catch exception from the Filemap module

The 'Filemap' module can raise exceptions in case of errors. Let's catch them
and re-raise as 'BmapCreate.Error' exceptions. This will make 'bmaptool' catch
them too and print a nice error message.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
bmaptools/BmapCreate.py