From 924cd37a37f1c58911ce7bc10b82ec9579c5c70e Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Thu, 1 Jul 2021 19:53:51 +0200 Subject: Bump github.com/spf13/cobra to v1.2.1 Fixes #9730 Signed-off-by: Paul Holzinger --- vendor/google.golang.org/grpc/status/status.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'vendor/google.golang.org/grpc/status') diff --git a/vendor/google.golang.org/grpc/status/status.go b/vendor/google.golang.org/grpc/status/status.go index 01e182c30..54d187186 100644 --- a/vendor/google.golang.org/grpc/status/status.go +++ b/vendor/google.golang.org/grpc/status/status.go @@ -73,9 +73,11 @@ func FromProto(s *spb.Status) *Status { return status.FromProto(s) } -// FromError returns a Status representing err if it was produced from this -// package or has a method `GRPCStatus() *Status`. Otherwise, ok is false and a -// Status is returned with codes.Unknown and the original error message. +// FromError returns a Status representing err if it was produced by this +// package or has a method `GRPCStatus() *Status`. +// If err is nil, a Status is returned with codes.OK and no message. +// Otherwise, ok is false and a Status is returned with codes.Unknown and +// the original error message. func FromError(err error) (s *Status, ok bool) { if err == nil { return nil, true -- cgit v1.2.3-54-g00ecf