diff options
Diffstat (limited to 'bitbake/lib/bb/data_smart.py')
-rw-r--r-- | bitbake/lib/bb/data_smart.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index f5f3b13a73..ec3c04e30c 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py | |||
@@ -103,7 +103,10 @@ class ExpansionError(Exception): | |||
103 | self.variablename = varname | 103 | self.variablename = varname |
104 | self.exception = exception | 104 | self.exception = exception |
105 | if varname: | 105 | if varname: |
106 | self.msg = "Failure expanding variable %s, expression was %s which triggered exception %s: %s" % (varname, expression, type(exception).__name__, exception) | 106 | if expression: |
107 | self.msg = "Failure expanding variable %s, expression was %s which triggered exception %s: %s" % (varname, expression, type(exception).__name__, exception) | ||
108 | else: | ||
109 | self.msg = "Failure expanding variable %s: %s: %s" % (varname, type(exception).__name__, exception) | ||
107 | else: | 110 | else: |
108 | self.msg = "Failure expanding expression %s which triggered exception %s: %s" % (expression, type(exception).__name__, exception) | 111 | self.msg = "Failure expanding expression %s which triggered exception %s: %s" % (expression, type(exception).__name__, exception) |
109 | Exception.__init__(self, self.msg) | 112 | Exception.__init__(self, self.msg) |