summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyZn <zalan@gmx.net>2016-08-30 12:07:34 +0200
committerGitHub <noreply@github.com>2016-08-30 12:07:34 +0200
commitfc0cc9a52c2295ee606f8bb551fec34a45a6d124 (patch)
tree6bb69dab282b2a4567ef45a621ead90112a703f5
parent72e78b4dfb0c9b9663aec59e578a6b8428ec65c1 (diff)
downloadzope-i18n-fc0cc9a52c2295ee606f8bb551fec34a45a6d124.tar.gz
Better error message on syntax error
-rw-r--r--src/zope/i18n/compile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zope/i18n/compile.py b/src/zope/i18n/compile.py
index 710f691..23f612e 100644
--- a/src/zope/i18n/compile.py
+++ b/src/zope/i18n/compile.py
@@ -43,5 +43,5 @@ def compile_mo_file(domain, lc_messages_path):
fd = open(mofile, 'wb')
fd.write(mo.read())
fd.close()
- except (IOError, OSError, PoSyntaxError):
- logger.warn('Error while compiling %s' % pofile)
+ except (IOError, OSError, PoSyntaxError) as err:
+ logger.warn('Error while compiling %s (%s).' % (pofile, err.msg))