Skip to content
Snippets Groups Projects
Commit cabbcbfc authored by Jorge Canizales's avatar Jorge Canizales
Browse files

Documentation: Don’t retry if not idempotent!

parent f5d51946
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment