better error output
authorStefan Behnel <scoder@users.berlios.de>
Sat, 8 May 2010 20:23:17 +0000 (22:23 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 8 May 2010 20:23:17 +0000 (22:23 +0200)
Cython/Compiler/Visitor.py

index d3e757f1b3eeec40e4b1e60ec45fae3fae17eb6a..8cd0f001da9fd88d340d5b560be689a696a05ab9 100644 (file)
@@ -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