aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c
diff options
context:
space:
mode:
authorGravatar Jorge Canizales <jcanizales@google.com>2015-09-03 03:44:38 -0700
committerGravatar Jorge Canizales <jcanizales@google.com>2015-09-03 14:20:21 -0700
commitcabbcbfc840aa0b761fdf7c25ac6aa3b699a52a7 (patch)
tree6ae47b489258592d7c9c5d3cedc105674998f507 /src/objective-c
parentf5d519464f0ce606ff8746cc324dc5c7626a8e02 (diff)
Documentation: Don’t retry if not idempotent!
Diffstat (limited to 'src/objective-c')
-rw-r--r--src/objective-c/ProtoRPC/ProtoRPC.m4
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,