git.openpandora.org
/
openembedded.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b762c15
)
oe.types: for invalid type, list valid ones
author
Chris Larson
<chris_larson@mentor.com>
Wed, 9 Feb 2011 18:38:16 +0000
(11:38 -0700)
committer
Chris Larson
<chris_larson@mentor.com>
Wed, 9 Feb 2011 18:38:16 +0000
(11:38 -0700)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
lib/oe/types.py
patch
|
blob
|
history
diff --git
a/lib/oe/types.py
b/lib/oe/types.py
index
0fb91db
..
86de4b0
100644
(file)
--- 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