Documentation: Don’t retry if not idempotent!

pull/3220/head
Jorge Canizales 10 years ago
parent afb7a0ee23
commit 7a84a4e91d
  1. 4
      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,

Loading…
Cancel
Save