]> code.ossystems Code Review - openembedded-core.git/commit
devtool: use DevtoolError for error handling
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 27 May 2015 14:59:09 +0000 (17:59 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Jun 2015 08:12:01 +0000 (09:12 +0100)
commit2e4f1dcade7ccb581c7a390c32163ea3deeac6d5
tree6e17bc8490ff99cc3954e53e2fe8c3ae16fae708
parent30fd41bd06a61e9df47263d49119fb8e193cdf68
devtool: use DevtoolError for error handling

Use DevtoolError exception more widely for handling error cases. This
exception is now caught in the main script and raising it can be used to
exit with an error. This hopefully simplifies error handling. The
change also makes exit codes more consistent, always returning '1' when
an error occurs.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
scripts/devtool
scripts/lib/devtool/__init__.py
scripts/lib/devtool/deploy.py
scripts/lib/devtool/standard.py