Commit e1cc4d94 authored by Andreas Jung's avatar Andreas Jung

- Collector #1751: Improved error reporting reporting during the

startup phase
parent 92b8ef7e
......@@ -31,6 +31,9 @@ Zope Changes
- Collector #1233: ported ZOPE_CONFIG patch from Zope 2.7 to Zope 2.8
- Collector #1751: Improved error reporting reporting during the
startup phase
Zope 2.8b1 (2005/04/24)
......
......@@ -93,8 +93,12 @@ def importable_name(name):
package = __import__(n, g, g, component)
return package
except ImportError:
raise ValueError, (
'The object named by "%s" could not be imported' % name )
import traceback, cStringIO
IO = cStringIO.StringIO()
traceback.print_exc(file=IO)
raise ValueError(
'The object named by "%s" could not be imported\n%s' % (name, IO.getvalue()))
# A datatype that ensures that a dotted path name can be resolved but
# returns the name instead of the object
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment