mirror of
https://github.com/Hopiu/django-rosetta.git
synced 2026-03-17 05:40:26 +00:00
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:
parent
4067e069bd
commit
b10e37ebeb
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue