aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/objective-c/GRPCClient/private/ChannelArgsUtil.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/objective-c/GRPCClient/private/ChannelArgsUtil.m b/src/objective-c/GRPCClient/private/ChannelArgsUtil.m
index 04a5cc8345..b26fb12d59 100644
--- a/src/objective-c/GRPCClient/private/ChannelArgsUtil.m
+++ b/src/objective-c/GRPCClient/private/ChannelArgsUtil.m
@@ -84,7 +84,7 @@ grpc_channel_args *BuildChannelArgs(NSDictionary *dictionary) {
if ([value compare:[NSNumber numberWithInteger:INT_MAX]] == NSOrderedDescending ||
[value compare:[NSNumber numberWithInteger:INT_MIN]] == NSOrderedAscending) {
[NSException raise:NSInvalidArgumentException
- format:@"Range exceeded for a value typed channel argument: %@", value];
+ format:@"Out of range for a value-typed channel argument: %@", value];
}
arg->type = GRPC_ARG_INTEGER;
arg->value.integer = [value intValue];
@@ -94,7 +94,7 @@ grpc_channel_args *BuildChannelArgs(NSDictionary *dictionary) {
arg->value.pointer.vtable = &objc_arg_vtable;
} else {
[NSException raise:NSInvalidArgumentException
- format:@"Invalid value type: %@", [value class]];
+ format:@"Invalid channel argument type: %@", [value class]];
}
}