aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-10-11 16:42:53 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-10-11 16:42:53 -0700
commit92d6e285d174bf6c8b2e60054f82d7288231da14 (patch)
tree3425ed7791abe5a7eadc716e008a082d614fd931
parent454966e36cab39ee1b18828575a23c75d812d895 (diff)
Polish exception message
-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]];
}
}