diff options
author | David Malcolm <dmalcolm@redhat.com> | 2009-11-13 20:33:19 -0500 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2009-11-13 20:33:19 -0500 |
commit | a35aa12a916f0ba167b109e709538e4289141e58 (patch) | |
tree | 900b808f959bcab4558e9639dd59b153b585c660 /validate.py | |
parent | e736aed161f54bb5130458b88001fa2c3ff31051 (diff) | |
download | check-cpython-a35aa12a916f0ba167b109e709538e4289141e58.tar.gz check-cpython-a35aa12a916f0ba167b109e709538e4289141e58.tar.xz check-cpython-a35aa12a916f0ba167b109e709538e4289141e58.zip |
Add current_element to error messages
Diffstat (limited to 'validate.py')
-rw-r--r-- | validate.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/validate.py b/validate.py index 3f32745..ebe5977 100644 --- a/validate.py +++ b/validate.py @@ -7,9 +7,10 @@ class CExtensionError(Exception): self.location = location def __str__(self): - return '%s:%s: %s' % (self.location.file, - self.location.line, - self._get_desc()) + return '%s:%s:%s:%s' % (self.location.file, + self.location.line, + self.location.current_element, + self._get_desc()) def _get_desc(self): raise NotImplementedError |