Skip to content

Commit

Permalink
status: remove Error method accidentally added to *Status (#3561)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfawley authored and easwars committed Apr 23, 2020
1 parent 1e85ab4 commit 00c31c0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/status/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ func (s *Status) Err() error {
return (*Error)(s.Proto())
}

func (s *Status) Error() string {
p := s.Proto()
return fmt.Sprintf("rpc error: code = %s desc = %s", codes.Code(p.GetCode()), p.GetMessage())
}

// WithDetails returns a new status with the provided details messages appended to the status.
// If any errors are encountered, it returns nil and the first error encountered.
func (s *Status) WithDetails(details ...proto.Message) (*Status, error) {
Expand Down

0 comments on commit 00c31c0

Please sign in to comment.