##// END OF EJS Templates
vcsserver: add debug information to some of the errors that might happen.
marcink -
r217:a2c26a72 default
parent child Browse files
Show More
@@ -23,6 +23,7 b' import posixpath as vcspath'
23 23 import StringIO
24 24 import subprocess
25 25 import urllib
26 import traceback
26 27
27 28 import svn.client
28 29 import svn.core
@@ -120,8 +121,9 b' class SvnRemote(object):'
120 121 # throws exception
121 122 try:
122 123 svnrepo.svnremoterepo(baseui, url).svn.uuid
123 except:
124 log.debug("Invalid svn url: %s", url)
124 except Exception:
125 tb = traceback.format_exc()
126 log.debug("Invalid Subversion url: `%s`, tb: %s", url, tb)
125 127 raise URLError(
126 128 '"%s" is not a valid Subversion source url.' % (url, ))
127 129 return True
@@ -130,7 +132,8 b' class SvnRemote(object):'
130 132 try:
131 133 svn.repos.open(path)
132 134 except svn.core.SubversionException:
133 log.debug("Invalid Subversion path %s", path)
135 tb = traceback.format_exc()
136 log.debug("Invalid Subversion path `%s`, tb: %s", path, tb)
134 137 return False
135 138 return True
136 139
General Comments 0
You need to be logged in to leave comments. Login now