aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-11-09 10:23:05 -0800
committerGravatar Muxi Yan <mxyan@google.com>2018-11-09 10:23:05 -0800
commit33022c9172bd3cf52c9aa3416ce9c69d9f3c6494 (patch)
tree2f10d1d34bd32ac9070d660e25508b1d6285c593 /src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m
parent861e7ce452866311ee2746d7b7a9fd1d11b84087 (diff)
Introduce GRPCAssert
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m b/src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m
index 1f6458c524..3079394ed8 100644
--- a/src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m
+++ b/src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m
@@ -22,6 +22,7 @@
#import "ChannelArgsUtil.h"
#import "GRPCChannel.h"
+#import "utilities.h"
NS_ASSUME_NONNULL_BEGIN
@@ -82,8 +83,9 @@ NS_ASSUME_NONNULL_BEGIN
if (errorPtr) {
*errorPtr = defaultRootsError;
}
- NSAssert(
+ GRPCAssertWithArgument(
defaultRootsASCII,
+ NSObjectNotAvailableException,
@"Could not read gRPCCertificates.bundle/roots.pem. This file, "
"with the root certificates, is needed to establish secure (TLS) connections. "
"Because the file is distributed with the gRPC library, this error is usually a sign "