From b10e37ebebf8a0f87b8de28d926f87af1f05367c Mon Sep 17 00:00:00 2001 From: Henk Vos Date: Wed, 30 May 2012 14:55:26 +0200 Subject: [PATCH] change to def proces to display the actual po file that contains the error on top of the line number --- rosetta/polib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rosetta/polib.py b/rosetta/polib.py index 89e1620..b151b03 100644 --- a/rosetta/polib.py +++ b/rosetta/polib.py @@ -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