[oe-commits] Markus Lehtonen : devtool: use DevtoolError for error handling
git at git.openembedded.org
git at git.openembedded.org
Thu Jun 18 08:16:45 UTC 2015
Module: openembedded-core.git
Branch: master
Commit: 2e4f1dcade7ccb581c7a390c32163ea3deeac6d5
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=2e4f1dcade7ccb581c7a390c32163ea3deeac6d5
Author: Markus Lehtonen <markus.lehtonen at linux.intel.com>
Date: Wed May 27 17:59:09 2015 +0300
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 at linux.intel.com>
---
scripts/devtool | 8 ++-
scripts/lib/devtool/__init__.py | 6 ++
scripts/lib/devtool/deploy.py | 31 ++++----
scripts/lib/devtool/standard.py | 154 ++++++++++++++++++----------------------
4 files changed, 99 insertions(+), 100 deletions(-)
Diff: http://git.openembedded.org/?p=openembedded-core.git/?a=commitdiff;h=2e4f1dcade7ccb581c7a390c32163ea3deeac6d5
More information about the Openembedded-commits
mailing list