]> granicus.if.org Git - clang/commitdiff
Fix error message for unknown type kind, from Anders Waldenborg!
authorDouglas Gregor <dgregor@apple.com>
Wed, 19 Oct 2011 05:49:29 +0000 (05:49 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 19 Oct 2011 05:49:29 +0000 (05:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142475 91177308-0d34-0410-b5e6-96231b3b80d8

bindings/python/clang/cindex.py

index 5ea371426cbae8fa059ac040f6ad472b85eb73b2..ee8c5e8384740e8a4b8aba48959a085cbc397dd9 100644 (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):