Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronc committed Mar 15, 2022
1 parent 5c76906 commit a51dc7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ func (e *wrappedError) Unwrap() error {
return e.parent
}

// GRPCStatus gets the gRPC status from the wrapped error or returns an unknown gRPC status.
func (e *wrappedError) GRPCStatus() *grpcstatus.Status {
w := e.Cause()
for {
Expand Down

0 comments on commit a51dc7e

Please sign in to comment.