Commit 23ce7f96 authored by Stefan Behnel's avatar Stefan Behnel

better error output

parent 6f693875
...@@ -46,7 +46,7 @@ class BasicVisitor(object): ...@@ -46,7 +46,7 @@ class BasicVisitor(object):
if self.access_path: if self.access_path:
print self.access_path[-1][0].pos print self.access_path[-1][0].pos
print self.access_path[-1][0].__dict__ 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__ #print "Caching " + cls.__name__
return handler_method return handler_method
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment