|
|
@ -385,8 +385,7 @@ const char *kCFStreamVarName = "grpc_cfstream"; |
|
|
|
callOptions:(GRPCCallOptions *)callOptions { |
|
|
|
callOptions:(GRPCCallOptions *)callOptions { |
|
|
|
// Purposely using pointer rather than length ([host length] == 0) for backwards compatibility. |
|
|
|
// Purposely using pointer rather than length ([host length] == 0) for backwards compatibility. |
|
|
|
if (!host || !path) { |
|
|
|
if (!host || !path) { |
|
|
|
[NSException raise:NSInvalidArgumentException |
|
|
|
[NSException raise:NSInvalidArgumentException format:@"Neither host nor path can be nil."]; |
|
|
|
format:@"Neither host nor path can be nil or empty."]; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if (safety > GRPCCallSafetyCacheableRequest) { |
|
|
|
if (safety > GRPCCallSafetyCacheableRequest) { |
|
|
|
[NSException raise:NSInvalidArgumentException format:@"Invalid call safety value."]; |
|
|
|
[NSException raise:NSInvalidArgumentException format:@"Invalid call safety value."]; |
|
|
|