Skip to content
Snippets Groups Projects
Commit ec0743e6 authored by Jorge Canizales's avatar Jorge Canizales
Browse files

Leave improving the error message as a TODO

parent 6af4addd
No related branches found
No related tags found
No related merge requests found
...@@ -171,7 +171,12 @@ ...@@ -171,7 +171,12 @@
request.responseSize = kPayloadSize; request.responseSize = kPayloadSize;
[_service unaryCallWithRequest:request handler:^(RMTSimpleResponse *response, NSError *error) { [_service unaryCallWithRequest:request handler:^(RMTSimpleResponse *response, NSError *error) {
XCTAssertEqualObjects(error.localizedDescription, @"Max message size exceeded"); // TODO: Improve // TODO(jcanizales): Catch the error and rethrow it with an actionable message:
// - Use +[GRPCCall setResponseSizeLimit:forHost:] to set a higher limit.
// - If you're developing the server, consider using response streaming, or let clients filter
// responses by setting a google.protobuf.FieldMask in the request:
// https://github.com/google/protobuf/blob/master/src/google/protobuf/field_mask.proto
XCTAssertEqualObjects(error.localizedDescription, @"Max message size exceeded");
[expectation fulfill]; [expectation fulfill];
}]; }];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment