From cabbcbfc840aa0b761fdf7c25ac6aa3b699a52a7 Mon Sep 17 00:00:00 2001 From: Jorge Canizales Date: Thu, 3 Sep 2015 03:44:38 -0700 Subject: [PATCH] =?UTF-8?q?Documentation:=20Don=E2=80=99t=20retry=20if=20n?= =?UTF-8?q?ot=20idempotent!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/objective-c/ProtoRPC/ProtoRPC.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/objective-c/ProtoRPC/ProtoRPC.m b/src/objective-c/ProtoRPC/ProtoRPC.m index 735ce0bdb51..9bf66f347ac 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,