summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/data_smart.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index 27fb7d9915..2c02cdeabf 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -102,7 +102,10 @@ class ExpansionError(Exception):
102 self.expression = expression 102 self.expression = expression
103 self.variablename = varname 103 self.variablename = varname
104 self.exception = exception 104 self.exception = exception
105 self.msg = "Failure expanding variable %s, expression was %s which triggered exception %s: %s" % (varname, expression, type(exception).__name__, exception) 105 if varname:
106 self.msg = "Failure expanding variable %s, expression was %s which triggered exception %s: %s" % (varname, expression, type(exception).__name__, exception)
107 else:
108 self.msg = "Failure expanding expression %s which triggered exception %s: %s" % (expression, type(exception).__name__, exception)
106 Exception.__init__(self, self.msg) 109 Exception.__init__(self, self.msg)
107 self.args = (varname, expression, exception) 110 self.args = (varname, expression, exception)
108 def __str__(self): 111 def __str__(self):