SVN: zpkgtools/branches/jim-relpath/zpkgtools/loader.py Improved an exception.

Jim Fulton <[email protected]>
Newsgroups gmane.comp.web.zope.public-cvs
Message-ID <[email protected]>
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)

_______________________________________________
Zope-CVS maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zope-cvs

Zope CVS instructions: http://dev.zope.org/CVS
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.