[Zope3-checkins] SVN: Zope3/trunk/src/zope/component/utility.py Be more verbose when a utility cannot be found. Nowadays, utilities

Philipp von Weitershausen philikon at philikon.de
Sun May 16 07:26:10 EDT 2004


Log message for revision 24738:
Be more verbose when a utility cannot be found. Nowadays, utilities
often have names.



-=-
Modified: Zope3/trunk/src/zope/component/utility.py
===================================================================
--- Zope3/trunk/src/zope/component/utility.py	2004-05-16 11:24:26 UTC (rev 24737)
+++ Zope3/trunk/src/zope/component/utility.py	2004-05-16 11:26:09 UTC (rev 24738)
@@ -41,7 +41,7 @@
         c = self.queryUtility(interface, None, name)
         if c is not None:
             return c
-        raise ComponentLookupError(interface)
+        raise ComponentLookupError(interface, name)
 
     def queryUtility(self, interface, default=None, name=''):
         """See IUtilityService interface"""




More information about the Zope3-Checkins mailing list