]> code.ossystems Code Review - openembedded-core.git/commit
wic: refactored processing of wic exceptions
authorEd Bartosh <ed.bartosh@linux.intel.com>
Wed, 27 May 2015 11:05:20 +0000 (14:05 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 27 May 2015 16:44:44 +0000 (17:44 +0100)
commite5e2c18ce4344c14d9e52ece916333bd0a619281
treeb6486e09ad5c9147508d01f919e3c93571288041
parentf9b121d8295eb9e297627f4d623164b43349a638
wic: refactored processing of wic exceptions

All wic exceptions are now inherited from new base exception
class WicError. It makes them easy to maintain and catch.

Processing of exceptions is done this way:
    Known wic exceptions cause wic to print error message to stdout.
    Unknown exceptions are not catched anymore and produce standard
    python traceback.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/utils/errors.py
scripts/wic