2016-11-18 | Paul Boddie | raw files shortlog changelog graph | Improved deduction error messages. | |
deducer.py (file) |
1.1 --- a/deducer.py Thu Nov 17 21:48:26 2016 +0100 1.2 +++ b/deducer.py Fri Nov 18 16:47:07 2016 +0100 1.3 @@ -540,7 +540,7 @@ 1.4 referenced_attrs = self.referenced_attrs[location] 1.5 1.6 if not referenced_attrs: 1.7 - raise DeduceError, repr(location) 1.8 + raise DeduceError("In %s, access via %s to attribute %s (occurrence %d) cannot be identified." % location) 1.9 1.10 # Record attribute information for each name used on the 1.11 # accessor.