change to def proces to display the actual po file that contains the error on top of the line number

This commit is contained in:
Henk Vos 2012-05-30 14:55:26 +02:00
parent 4067e069bd
commit b10e37ebeb

View file

@ -1310,7 +1310,7 @@ class _POFileParser(object):
if action():
self.current_state = state
except Exception:
raise IOError('Syntax error in po file (line %s)' % linenum)
raise IOError('Syntax error in po file: %s (line %s)' % (self.instance.fpath, linenum))
# state handlers