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

Minor: add TODO to improve an error message.

parent 50f19826
No related branches found
No related tags found
No related merge requests found
...@@ -66,6 +66,8 @@ ...@@ -66,6 +66,8 @@
// A writer that serializes the proto messages to send. // A writer that serializes the proto messages to send.
id<GRXWriter> bytesWriter = id<GRXWriter> bytesWriter =
[[[GRXWriter alloc] initWithWriter:requestsWriter] map:^id(GPBMessage *proto) { [[[GRXWriter alloc] initWithWriter:requestsWriter] map:^id(GPBMessage *proto) {
// TODO(jcanizales): Fail with an understandable error message if the requestsWriter isn't
// sending GPBMessages.
return [proto data]; return [proto data];
}]; }];
if ((self = [super initWithHost:host method:method requestsWriter:bytesWriter])) { if ((self = [super initWithHost:host method:method requestsWriter:bytesWriter])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment