From ea08cce8fe4d2de8e1d1eef20fcfb34a27f2376b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Podg=C3=B3rski?= Date: Fri, 15 May 2020 19:39:36 +0200 Subject: [PATCH] Update api.go Co-authored-by: Travis Turner --- api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.go b/api.go index 6507b0abb..77a3fc34e 100644 --- a/api.go +++ b/api.go @@ -159,7 +159,7 @@ func (api *API) Query(ctx context.Context, req *QueryRequest) (QueryResponse, er return QueryResponse{}, errors.Wrap(err, "executing") } - // The most important is to ensure that resp.Err isn't being swallowed + // Check for an error embedded in the response. if resp.Err != nil { err = errors.Wrap(resp.Err, "executing") }