Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Unified Diff: grpc/prpc/client.go

Issue 2963503003: [errors] Greatly simplify common/errors package. (Closed)
Patch Set: fix nits Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « grpc/grpcutil/errors.go ('k') | logdog/appengine/coordinator/endpoints/logs/get.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grpc/prpc/client.go
diff --git a/grpc/prpc/client.go b/grpc/prpc/client.go
index 971a8c01f6bae1d62769616e0c2aa11a7e234b92..d958196853179f0420a34661e89150446f3b3316 100644
--- a/grpc/prpc/client.go
+++ b/grpc/prpc/client.go
@@ -204,8 +204,7 @@ func (c *Client) CallRaw(ctx context.Context, serviceName, methodName string, in
}
if err != nil {
// Treat all errors here as transient.
- return errors.Annotate(err).Reason("failed to send request").
- Tag(transient.Tag).Err()
+ return errors.Annotate(err, "failed to send request").Tag(transient.Tag).Err()
}
if options.resHeaderMetadata != nil {
« no previous file with comments | « grpc/grpcutil/errors.go ('k') | logdog/appengine/coordinator/endpoints/logs/get.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698