[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - cvsloader.py:1.25
svnloader.py:1.12
Fred L. Drake, Jr.
fred at zope.com
Thu May 13 11:04:23 EDT 2004
Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv19611
Modified Files:
cvsloader.py svnloader.py
Log Message:
add additional information to exception messages
=== Packages/zpkgtools/zpkgtools/cvsloader.py 1.24 => 1.25 ===
--- Packages/zpkgtools/zpkgtools/cvsloader.py:1.24 Fri May 7 15:33:22 2004
+++ Packages/zpkgtools/zpkgtools/cvsloader.py Thu May 13 11:04:20 2004
@@ -59,7 +59,7 @@
if m is None:
m = _repository_url_match(cvsurl)
if m is None:
- raise ValueError("not a valid CVS url")
+ raise ValueError("not a valid CVS url: %r" % cvsurl)
return RepositoryUrl(m.group("path"), m.group("tag"))
host = m.group("host")
cvsroot = "/" + m.group("cvsroot")
=== Packages/zpkgtools/zpkgtools/svnloader.py 1.11 => 1.12 ===
--- Packages/zpkgtools/zpkgtools/svnloader.py:1.11 Fri May 7 15:33:29 2004
+++ Packages/zpkgtools/zpkgtools/svnloader.py Thu May 13 11:04:20 2004
@@ -180,7 +180,7 @@
:raises ValueError: If the URL is not a valid Subversion URL.
"""
if not is_subversion_url(url):
- raise ValueError("not a Subversion URL")
+ raise ValueError("not a Subversion URL: %r" % url)
parts = split_on_tag(url)
if parts is None:
More information about the Zope-CVS
mailing list