Errorf returns Error(c, fmt.Sprintf(format, a...)).
(c codes.Code, format string, a ...any)
| 61 | |
| 62 | // Errorf returns Error(c, fmt.Sprintf(format, a...)). |
| 63 | func Errorf(c codes.Code, format string, a ...any) error { |
| 64 | return Error(c, fmt.Sprintf(format, a...)) |
| 65 | } |
| 66 | |
| 67 | // ErrorProto returns an error representing s. If s.Code is OK, returns nil. |
| 68 | func ErrorProto(s *spb.Status) error { |