Error returns the error message with prefix if set.
()
| 20 | |
| 21 | // Error returns the error message with prefix if set. |
| 22 | func (e *TextError) Error() string { |
| 23 | if len(e.prefix) > 0 { |
| 24 | return e.prefix + ": " + e.msg |
| 25 | } |
| 26 | return e.msg |
| 27 | } |
nothing calls this directly
no outgoing calls
no test coverage detected