cooker: handle ExpansionError the same way we do ParseError

(Bitbake rev: 12aef37618bc77fb5ef085d24ad85471fb85c111)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Chris Larson 2011-06-02 14:45:13 -07:00 committed by Richard Purdie
parent 96e2ee1d73
commit 3fd34462ed
1 changed files with 1 additions and 1 deletions

View File

@ -1227,7 +1227,7 @@ class CookerParser(object):
self.shutdown(clean=False)
bb.fatal('Unable to parse %s: %s' %
(exc.recipe, bb.exceptions.to_string(exc.realexception)))
except bb.parse.ParseError as exc:
except (bb.parse.ParseError, bb.data_smart.ExpansionError) as exc:
bb.fatal(str(exc))
except SyntaxError as exc:
logger.error('Unable to parse %s', exc.recipe)