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:
Pierre-Yves David 2014-09-11 20:30:16 +02:00
parent c72eed0894
commit 548b8af8b5

View File

@ -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)