diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-02-09 11:38:16 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2011-02-09 11:38:16 -0700 |
commit | f41d2fdfa6fc443353aec43eec0bfdf5c4dbb5f8 (patch) | |
tree | 1e9de1fa19383052771ed161f50109f031100bab | |
parent | b762c1532788bbfce2700a0afec1500e5703e430 (diff) | |
download | openembedded-f41d2fdfa6fc443353aec43eec0bfdf5c4dbb5f8.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.py | 3 |
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 |