From a247f2d023b6df4e3b6642659683c75d5cfc6e11 Mon Sep 17 00:00:00 2001 From: Matheus Pimenta Date: Wed, 7 Sep 2022 18:00:36 +0100 Subject: [PATCH] fix comment as suggested by @tritone --- internal/gensupport/send.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/gensupport/send.go b/internal/gensupport/send.go index 3f94531d407..6cfbe8d1e25 100644 --- a/internal/gensupport/send.go +++ b/internal/gensupport/send.go @@ -117,8 +117,8 @@ func sendAndRetry(ctx context.Context, client *http.Client, req *http.Request, r for { select { case <-ctx.Done(): - // If we got an error, and the context has been canceled, - // the context's error is probably more useful. + // If we got an error and the context has been canceled, return an error acknowledging + // both the context cancelation and the service error. if err != nil { return resp, wrappedCallErr{ctx.Err(), err} }