##// 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 import StringIO
23 import StringIO
24 import subprocess
24 import subprocess
25 import urllib
25 import urllib
26 import traceback
26
27
27 import svn.client
28 import svn.client
28 import svn.core
29 import svn.core
@@ -120,8 +121,9 b' class SvnRemote(object):'
120 # throws exception
121 # throws exception
121 try:
122 try:
122 svnrepo.svnremoterepo(baseui, url).svn.uuid
123 svnrepo.svnremoterepo(baseui, url).svn.uuid
123 except:
124 except Exception:
124 log.debug("Invalid svn url: %s", url)
125 tb = traceback.format_exc()
126 log.debug("Invalid Subversion url: `%s`, tb: %s", url, tb)
125 raise URLError(
127 raise URLError(
126 '"%s" is not a valid Subversion source url.' % (url, ))
128 '"%s" is not a valid Subversion source url.' % (url, ))
127 return True
129 return True
@@ -130,7 +132,8 b' class SvnRemote(object):'
130 try:
132 try:
131 svn.repos.open(path)
133 svn.repos.open(path)
132 except svn.core.SubversionException:
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 return False
137 return False
135 return True
138 return True
136
139
General Comments 0
You need to be logged in to leave comments. Login now