##// END OF EJS Templates
error-handlig: pass in Abort exception info to RhodeCode from vcsserver.
marcink -
r120:dcb043be default
parent child Browse files
Show More
@@ -346,10 +346,11 b' class GitRemote(object):'
346 try:
346 try:
347 remote_refs = client.fetch(
347 remote_refs = client.fetch(
348 path=url, target=repo, determine_wants=determine_wants)
348 path=url, target=repo, determine_wants=determine_wants)
349 except NotGitRepository:
349 except NotGitRepository as e:
350 log.warning(
350 log.warning(
351 'Trying to fetch from "%s" failed, not a Git repository.', url)
351 'Trying to fetch from "%s" failed, not a Git repository.', url)
352 raise exceptions.AbortException()
352 # Exception can contain unicode which we convert
353 raise exceptions.AbortException(repr(e))
353
354
354 # mikhail: client.fetch() returns all the remote refs, but fetches only
355 # mikhail: client.fetch() returns all the remote refs, but fetches only
355 # refs filtered by `determine_wants` function. We need to filter result
356 # refs filtered by `determine_wants` function. We need to filter result
@@ -607,9 +607,10 b' class HgRemote(object):'
607 date = (tag_time, tag_timezone)
607 date = (tag_time, tag_timezone)
608 try:
608 try:
609 repo.tag(name, node, message, local, user, date)
609 repo.tag(name, node, message, local, user, date)
610 except Abort:
610 except Abort as e:
611 log.exception("Tag operation aborted")
611 log.exception("Tag operation aborted")
612 raise exceptions.AbortException()
612 # Exception can contain unicode which we convert
613 raise exceptions.AbortException(repr(e))
613
614
614 @reraise_safe_exceptions
615 @reraise_safe_exceptions
615 def tags(self, wire):
616 def tags(self, wire):
General Comments 0
You need to be logged in to leave comments. Login now