Merge pull request #10755 from wrfly/patch-3

fix #10754
This commit is contained in:
Xiang Li 2019-05-28 20:50:52 -07:00 committed by GitHub
commit 23a89b0f09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,7 @@ func (c *Client) unaryClientInterceptor(logger *zap.Logger, optFuncs ...retryOpt
zap.String("target", cc.Target()),
zap.Error(gterr),
)
return lastErr // return the original error for simplicity
return gterr // lastErr must be invalid auth token
}
continue
}