aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-02-09 11:38:16 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2011-04-22 16:39:25 +0200
commit21d6180cc4f70635890d2e986438ab2309faf3ec (patch)
tree94238ece07a3c315055a6fc00eb26ccb51875047
parent82975ba48fe082ec02e69a32a3debfeadbdebe0d (diff)
downloadopenembedded-21d6180cc4f70635890d2e986438ab2309faf3ec.tar.gz
oe.types: for invalid type, list valid ones
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r--lib/oe/types.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/oe/types.py b/lib/oe/types.py
index 0fb91db248..86de4b084b 100644
--- a/lib/oe/types.py
+++ b/lib/oe/types.py
@@ -27,7 +27,8 @@ def factory(var_type):
try:
return types[var_type]
except KeyError:
- raise TypeError("Invalid type '%s'" % var_type)
+ raise TypeError("Invalid type '%s':\n Valid types: %s" %
+ (var_type, ', '.join(types)))
def create(value, var_type, **flags):
"""Create an object of the specified type, given the specified flags and