errorCatcher is a UI that captures errors for reporting to the browser.
| 65 | |
| 66 | // errorCatcher is a UI that captures errors for reporting to the browser. |
| 67 | type errorCatcher struct { |
| 68 | plugin.UI |
| 69 | errors []string |
| 70 | } |
| 71 | |
| 72 | func (ec *errorCatcher) PrintErr(args ...interface{}) { |
| 73 | ec.errors = append(ec.errors, strings.TrimSuffix(fmt.Sprintln(args...), "\n")) |
nothing calls this directly
no outgoing calls
no test coverage detected