[Zodb-checkins] CVS: Packages/ZConfig - ApacheStyle.py:1.4
Chris McDonough
chrism@zope.com
Sun, 24 Nov 2002 01:04:36 -0500
Update of /cvs-repository/Packages/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv23258
Modified Files:
ApacheStyle.py
Log Message:
Catch ConfigurationError emanating from section finish in order
to support error reporting if the section cannot finish (used
by prototype schema support).
=== Packages/ZConfig/ApacheStyle.py 1.3 => 1.4 ===
--- Packages/ZConfig/ApacheStyle.py:1.3 Thu Nov 7 10:29:14 2002
+++ Packages/ZConfig/ApacheStyle.py Sun Nov 24 01:04:35 2002
@@ -32,7 +32,10 @@
if type.lower() != section.type:
raise ConfigurationSyntaxError(
"unbalanced section end", url, lineno)
- section.finish()
+ try:
+ section.finish()
+ except ConfigurationError, e:
+ raise ConfigurationSyntaxError(e[0], url, lineno)
section = stack.pop()
continue
if line[0] == "<":