diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-01-18 14:22:41 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-19 16:35:37 +0000 |
commit | 13092793693c1c0ea172701578506f4a70a093d2 (patch) | |
tree | 15acf1c479bcefecbfec28eae8207d4782ed1f10 /scripts/lib | |
parent | 9543c4a9ce0ac7d9ced66fa14e48a1aa7401011e (diff) | |
download | openembedded-core-13092793693c1c0ea172701578506f4a70a093d2.tar.gz openembedded-core-13092793693c1c0ea172701578506f4a70a093d2.tar.bz2 openembedded-core-13092793693c1c0ea172701578506f4a70a093d2.zip |
wic: add custom exception KickStartError
This exception will be raised by kickstart parser
on parsing errors and processed in the code which
calls parser to produce meaningful error output.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/wic/kickstart.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/wic/kickstart.py b/scripts/lib/wic/kickstart.py index 22083950f0..7f0105dd07 100644 --- a/scripts/lib/wic/kickstart.py +++ b/scripts/lib/wic/kickstart.py @@ -31,6 +31,9 @@ from argparse import ArgumentParser, ArgumentTypeError from wic.partition import Partition +class KickStartError(Exception): + pass + def sizetype(arg): """ Custom type for ArgumentParser |