Use 'eagerError' on Future:wait in HTTP, after Futute:wait change.

BUG=

Review URL: https://codereview.chromium.org//78083002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30451 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
ajohnsen@google.com 2013-11-20 10:22:37 +00:00
parent f30972c783
commit d4345e60f2

View file

@ -940,8 +940,8 @@ class _HttpClientRequest extends _HttpOutboundMessage<HttpClientResponse>
Future<HttpClientResponse> get done {
if (_response == null) {
_response = Future.wait([_responseCompleter.future,
super.done])
_response = Future.wait([_responseCompleter.future, super.done],
eagerError: true)
.then((list) => list[0]);
}
return _response;