fileserverclient: correctly use exception constructor

We were passing one argument instead of 3.
This commit is contained in:
Augie Fackler 2015-08-18 15:35:21 -04:00
parent 51f7cac5a7
commit 06c09f03ab

View File

@ -45,7 +45,7 @@ def peersetup(ui, peer):
yield {'file': file, 'node': node}, f
code, data = f.value.split('\0', 1)
if int(code):
raise error.LookupError(data)
raise error.LookupError(file, node, data)
yield data
peer.__class__ = remotefilepeer