From a35aa12a916f0ba167b109e709538e4289141e58 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Fri, 13 Nov 2009 20:33:19 -0500 Subject: Add current_element to error messages --- validate.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'validate.py') 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 -- cgit