mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
client: add a second argument to ResponseError
Summary: The ResponseError exception expect a second argument. Otherwise the code handling it crashes. Test Plan: The handling of the response error stop crashing. Reviewers: durham Differential Revision: https://phabricator.fb.com/D1581574
This commit is contained in:
parent
c72eed0894
commit
548b8af8b5
@ -216,7 +216,7 @@ class fileserverclient(object):
|
||||
line = pipe.readline()[:-1]
|
||||
if not line:
|
||||
raise error.ResponseError(_("error downloading file " +
|
||||
"contents: connection closed early\n"))
|
||||
"contents: connection closed early\n"), '')
|
||||
size = int(line)
|
||||
data = pipe.read(size)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user