Error implements error. it consults the Printer for the output.
()
| 114 | |
| 115 | // Error implements error. it consults the Printer for the output. |
| 116 | func (e *Error) Error() string { |
| 117 | if e.Printer == nil { |
| 118 | e.Printer = text.BasePrinter{} |
| 119 | } |
| 120 | return e.Printer.Sprintf(e.msg, e.args...) |
| 121 | } |
| 122 | |
| 123 | // GRPCStatus produces a native gRPC status. |
| 124 | func (e *Error) GRPCStatus() *status.Status { |