diff options
author | Jorge Canizales <jcanizales@google.com> | 2015-09-03 03:44:38 -0700 |
---|---|---|
committer | Jorge Canizales <jcanizales@google.com> | 2015-09-03 14:20:21 -0700 |
commit | cabbcbfc840aa0b761fdf7c25ac6aa3b699a52a7 (patch) | |
tree | 6ae47b489258592d7c9c5d3cedc105674998f507 /src/objective-c | |
parent | f5d519464f0ce606ff8746cc324dc5c7626a8e02 (diff) |
Documentation: Don’t retry if not idempotent!
Diffstat (limited to 'src/objective-c')
-rw-r--r-- | src/objective-c/ProtoRPC/ProtoRPC.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/objective-c/ProtoRPC/ProtoRPC.m b/src/objective-c/ProtoRPC/ProtoRPC.m index 735ce0bdb5..9bf66f347a 100644 --- a/src/objective-c/ProtoRPC/ProtoRPC.m +++ b/src/objective-c/ProtoRPC/ProtoRPC.m @@ -40,7 +40,9 @@ static NSError *ErrorForBadProto(id proto, Class expectedClass, NSError *parsingError) { NSDictionary *info = @{ NSLocalizedDescriptionKey: @"Unable to parse response from the server", - NSLocalizedRecoverySuggestionErrorKey: @"Retry with exponential backoff", + NSLocalizedRecoverySuggestionErrorKey: @"If this RPC is idempotent, retry " + @"with exponential backoff. Otherwise, query the server status before " + @"retrying.", NSUnderlyingErrorKey: parsingError, @"Expected class": expectedClass, @"Received value": proto, |