forked from OSchip/llvm-project
Fix error message for unknown type kind, from Anders Waldenborg!
llvm-svn: 142475
This commit is contained in:
parent
32df3664be
commit
d59d02cc38
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue