From 23ce7f9643e5695ee36add13807ba8fda57f24d2 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 8 May 2010 22:23:17 +0200 Subject: [PATCH] better error output --- Cython/Compiler/Visitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Visitor.py b/Cython/Compiler/Visitor.py index d3e757f1..8cd0f001 100644 --- a/Cython/Compiler/Visitor.py +++ b/Cython/Compiler/Visitor.py @@ -46,7 +46,7 @@ class BasicVisitor(object): if self.access_path: print self.access_path[-1][0].pos print self.access_path[-1][0].__dict__ - raise RuntimeError("Visitor does not accept object: %s" % obj) + raise RuntimeError("Visitor %r does not accept object: %s" % (self, obj)) #print "Caching " + cls.__name__ return handler_method -- 2.26.2