aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-12-19 13:06:34 -0800
committerGravatar Muxi Yan <mxyan@google.com>2018-12-19 13:06:34 -0800
commit1876d0d3669147e68c64d7916082de64025e9b6f (patch)
tree04cd16ac94ed531e16f07118044511336fa5109e /src
parent92123a4a333719fa3aa55b3db9f36c136e108a47 (diff)
ProtoRPC bug
Diffstat (limited to 'src')
-rw-r--r--src/objective-c/ProtoRPC/ProtoRPC.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/objective-c/ProtoRPC/ProtoRPC.m b/src/objective-c/ProtoRPC/ProtoRPC.m
index 48a38bd35a..03e6839c5a 100644
--- a/src/objective-c/ProtoRPC/ProtoRPC.m
+++ b/src/objective-c/ProtoRPC/ProtoRPC.m
@@ -175,7 +175,7 @@ static NSError *ErrorForBadProto(id proto, Class expectedClass, NSError *parsing
}
- (void)writeMessage:(GPBMessage *)message {
- NSAssert([message isKindOfClass:[GPBMessage class]]);
+ NSAssert([message isKindOfClass:[GPBMessage class]], @"Parameter message must be a GPBMessage");
if (![message isKindOfClass:[GPBMessage class]]) {
NSLog(@"Failed to send a message that is non-proto.");
return;
@@ -199,7 +199,7 @@ static NSError *ErrorForBadProto(id proto, Class expectedClass, NSError *parsing
- (void)didReceiveInitialMetadata:(NSDictionary *)initialMetadata {
@synchronized(self) {
- if (initialMetadata != nil && [_handler respondsToSelector:@selector(initialMetadata:)]) {
+ if (initialMetadata != nil && [_handler respondsToSelector:@selector(didReceiveInitialMetadata:)]) {
dispatch_async(_dispatchQueue, ^{
id<GRPCProtoResponseHandler> copiedHandler = nil;
@synchronized(self) {