Fix error message for unknown type kind, from Anders Waldenborg!

llvm-svn: 142475
This commit is contained in:
Douglas Gregor 2011-10-19 05:49:29 +00:00
parent 32df3664be
commit d59d02cc38
1 changed files with 1 additions and 1 deletions

View File

@ -969,7 +969,7 @@ class TypeKind(object):
@staticmethod
def from_id(id):
if id >= len(TypeKind._kinds) or TypeKind._kinds[id] is None:
raise ValueError,'Unknown cursor kind'
raise ValueError,'Unknown type kind %d' % id
return TypeKind._kinds[id]
def __repr__(self):