[Zope-CVS] SVN: zpkgtools/branches/jim-relpath/zpkgtools/loader.py Improved an exception.

Jim Fulton jim at zope.com
Wed Jun 8 07:45:00 EDT 2005


Log message for revision 30686:
  Improved an exception.
  

Changed:
  U   zpkgtools/branches/jim-relpath/zpkgtools/loader.py

-=-
Modified: zpkgtools/branches/jim-relpath/zpkgtools/loader.py
===================================================================
--- zpkgtools/branches/jim-relpath/zpkgtools/loader.py	2005-06-08 11:44:58 UTC (rev 30685)
+++ zpkgtools/branches/jim-relpath/zpkgtools/loader.py	2005-06-08 11:44:59 UTC (rev 30686)
@@ -177,7 +177,8 @@
                 else:
                     method = self.unknown_load
         else:
-            raise ValueError("can only load from URLs, not path references")
+            raise ValueError("can only load from URLs, not path references",
+                             url)
         path = method(url)
         assert path == self.workdirs[url][1]
         trace("LOADED %s -> %s", url, path)



More information about the Zope-CVS mailing list