status: remove Error method accidentally added to *Status (#3561)
diff --git a/internal/status/status.go b/internal/status/status.go
index 23dae8e..6812606 100644
--- a/internal/status/status.go
+++ b/internal/status/status.go
@@ -100,11 +100,6 @@
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) {