Mercurial > hg
changeset 51510:a2f1d97e5284 stable
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__)
author | Felipe Resende <felipe@fcresende.dev.br> |
---|---|
date | Sat, 16 Mar 2024 18:37:07 -0300 |
parents | e7bbeaa4f0a7 |
children | 08913487ae80 |
files | mercurial/sshpeer.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/sshpeer.py Mon Mar 18 11:25:21 2024 +0100 +++ b/mercurial/sshpeer.py Sat Mar 16 18:37:07 2024 -0300 @@ -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)