diff options
author | makdharma <makdharma@users.noreply.github.com> | 2016-07-18 16:26:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-18 16:26:31 -0700 |
commit | 2eebe29ec84ed6b2d5c64016b12e1782281d5a38 (patch) | |
tree | 60921e08be3231f95b65436b5e9782321137773e /src/objective-c | |
parent | f3f5c18e5ad14a35351f672181c51998b589cef3 (diff) | |
parent | 3b67f3622bb51bd7a2f6eacd81cd93d8578d52ef (diff) |
Merge pull request #7245 from muxi/fix-7181
Fix of Issue #7181 documentation and Objective C code
Diffstat (limited to 'src/objective-c')
-rw-r--r-- | src/objective-c/GRPCClient/GRPCCall.m | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall.m b/src/objective-c/GRPCClient/GRPCCall.m index da9473f9a2..05a1d10f6d 100644 --- a/src/objective-c/GRPCClient/GRPCCall.m +++ b/src/objective-c/GRPCClient/GRPCCall.m @@ -208,13 +208,9 @@ NSString * const kGRPCTrailersKey = @"io.grpc.TrailersKey"; // don't want to throw, because the app shouldn't crash for a behavior // that's on the hands of any server to have. Instead we finish and ask // the server to cancel. - // - // TODO(jcanizales): No canonical code is appropriate for this situation - // (because it's just a client problem). Use another domain and an - // appropriately-documented code. [weakSelf finishWithError:[NSError errorWithDomain:kGRPCErrorDomain - code:GRPCErrorCodeInternal - userInfo:nil]]; + code:GRPCErrorCodeResourceExhausted + userInfo:@{NSLocalizedDescriptionKey: @"Client does not have enough memory to hold the server response."}]]; [weakSelf cancelCall]; return; } |