From: Chris Larson Date: Wed, 9 Feb 2011 18:38:16 +0000 (-0700) Subject: oe.types: for invalid type, list valid ones X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f41d2fdfa6fc443353aec43eec0bfdf5c4dbb5f8;p=openembedded.git oe.types: for invalid type, list valid ones Signed-off-by: Chris Larson --- 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