aboutsummaryrefslogtreecommitdiff
path: root/vendor/google.golang.org/grpc/status
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-07-03 06:11:03 -0400
committerGitHub <noreply@github.com>2021-07-03 06:11:03 -0400
commit07716133c44c9c9593364029f4b98085d1be3bdd (patch)
treeca1b03c22f1c40c793fe6fe30c99aee8cd3d7558 /vendor/google.golang.org/grpc/status
parent878a2231f9eae037d15bc27c50cdf3a9418793c7 (diff)
parent84da70a0f36e7d6fc87919ca4a69b20bc9d43f72 (diff)
downloadpodman-07716133c44c9c9593364029f4b98085d1be3bdd.tar.gz
podman-07716133c44c9c9593364029f4b98085d1be3bdd.tar.bz2
podman-07716133c44c9c9593364029f4b98085d1be3bdd.zip
Merge pull request #10852 from Luap99/cobra
bump cobra to v1.2.1 and update the shell completion scripts
Diffstat (limited to 'vendor/google.golang.org/grpc/status')
-rw-r--r--vendor/google.golang.org/grpc/status/status.go8
1 files changed, 5 insertions, 3 deletions
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