Skip to content
Snippets Groups Projects
Commit a2f1d97e5284 authored by Felipe Resende's avatar Felipe Resende
Browse files

sshpeer: fix path when handling invalid url exception

In 73ed1d13c0bf the code was refactored but the error handling seems to have
been missed (or maybe the object shoud have implemented __bytes__)
parent e7bbeaa4f0a7
2 merge requests!816Merge stable into default,!813subrepo: fix normalizing paths with scheme
......@@ -640,7 +640,7 @@
"""
u = urlutil.url(path.loc, parsequery=False, parsefragment=False)
if u.scheme != b'ssh' or not u.host or u.path is None:
raise error.RepoError(_(b"couldn't parse location %s") % path)
raise error.RepoError(_(b"couldn't parse location %s") % path.loc)
urlutil.checksafessh(path.loc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment