From: Douglas Gregor Date: Wed, 19 Oct 2011 05:49:29 +0000 (+0000) Subject: Fix error message for unknown type kind, from Anders Waldenborg! X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d342ab031ba831263291a3bcda485e684508ea9;p=clang Fix error message for unknown type kind, from Anders Waldenborg! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142475 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/bindings/python/clang/cindex.py b/bindings/python/clang/cindex.py index 5ea371426c..ee8c5e8384 100644 --- a/bindings/python/clang/cindex.py +++ b/bindings/python/clang/cindex.py @@ -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):