diff options
author | 2018-11-09 10:23:05 -0800 | |
---|---|---|
committer | 2018-11-09 10:23:05 -0800 | |
commit | 33022c9172bd3cf52c9aa3416ce9c69d9f3c6494 (patch) | |
tree | 2f10d1d34bd32ac9070d660e25508b1d6285c593 /src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m | |
parent | 861e7ce452866311ee2746d7b7a9fd1d11b84087 (diff) |
Introduce GRPCAssert
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m | 4 |
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 " |