Skip to content

Commit 02b10aa

Browse files
committed
Propogate error back to the caller
1 parent 6d5e325 commit 02b10aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/server.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ class _IOClient extends http.Client {
117117

118118
var resp = new http.Response(value, map, response.statusCode);
119119
completer.complete(resp);
120-
});
121-
});
120+
}).catchError(completer.completeError);
121+
}).catchError(completer.completeError);
122122

123123
return completer.future;
124124
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy