]> code.ossystems Code Review - openembedded-core.git/commit
runqemu: reworked exception handling
authorEd Bartosh <ed.bartosh@linux.intel.com>
Tue, 11 Jul 2017 14:34:23 +0000 (17:34 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 17 Jul 2017 12:48:51 +0000 (13:48 +0100)
commita779a382b66e7b43ac53286758b4370dc14b193b
tree02ef2bdea2a05086cfd9d6beb98f3b4680d4437d
parentb1c4661742d12cfd444043e597d01bd627ee4ca4
runqemu: reworked exception handling

Introduced custom RunQemuException that script raises on known
errors. This exception is handled in one place and prints
error output without printing Python traceback. This shoud make
error output less scary for the end user.

Handling of unknown errors has not been changed - both error and
traceback will be printed.

Reimplemented OEPathError exception code to handle it similarly
to RunQemuException.

Moved exception handling code into main() to keep it in one place.

[YOCTO #11719]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/runqemu