| 54 | func (w *unimplementedError) Format(s fmt.State, verb rune) { errbase.FormatError(w, s, verb) } |
| 55 | |
| 56 | func (w *unimplementedError) SafeFormatError(p errbase.Printer) error { |
| 57 | // For now, msg is non-reportable. |
| 58 | p.Print(w.msg) |
| 59 | if p.Detail() { |
| 60 | // But the details are. |
| 61 | p.Printf("unimplemented") |
| 62 | if w.IssueURL != "" { |
| 63 | p.Printf("\nissue: %s", redact.Safe(w.IssueURL)) |
| 64 | } |
| 65 | if w.Detail != "" { |
| 66 | p.Printf("\ndetail: %s", redact.Safe(w.Detail)) |
| 67 | } |
| 68 | } |
| 69 | return nil |
| 70 | } |
| 71 | |
| 72 | func decodeUnimplementedError( |
| 73 | _ context.Context, msg string, details []string, _ proto.Message, |