summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-01-18 14:22:41 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-19 17:24:47 +0000
commitbda77fd50684c32e464bf2e03376c46d41cabbdc (patch)
tree6f3ea73a35029c5f9b9e2758799da1444a16c1c6
parentef211a5ca1e39d1111b21ab3a4218c254dd8dc41 (diff)
downloadopenembedded-core-contrib-bda77fd50684c32e464bf2e03376c46d41cabbdc.tar.gz
openembedded-core-contrib-bda77fd50684c32e464bf2e03376c46d41cabbdc.tar.bz2
openembedded-core-contrib-bda77fd50684c32e464bf2e03376c46d41cabbdc.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. (From OE-Core rev: 13092793693c1c0ea172701578506f4a70a093d2) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--scripts/lib/wic/kickstart.py3
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