diff options
author | 2015-09-03 03:44:38 -0700 | |
---|---|---|
committer | 2015-09-03 03:44:38 -0700 | |
commit | 7a84a4e91dcee8b82c0665bc1f209f538fb6e023 (patch) | |
tree | e328dc26dce915521bd77d07a32b21e0f9af0695 /src/objective-c/ProtoRPC | |
parent | afb7a0ee237fe1221f8c2c857387f82ff63c45c5 (diff) |
Documentation: Don’t retry if not idempotent!
Diffstat (limited to 'src/objective-c/ProtoRPC')
-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, |