MCPcopy
hub / github.com/mum4k/termdash / handleError

Method handleError

termdash.go:248–254  ·  view source on GitHub ↗

handleError forwards the error to the error handler if one was provided or panics.

(err error)

Source from the content-addressed store, hash-verified

246// handleError forwards the error to the error handler if one was
247// provided or panics.
248func (td *termdash) handleError(err error) {
249 if td.errorHandler != nil {
250 td.errorHandler(err)
251 } else {
252 panic(err)
253 }
254}
255
256// setClearNeeded flags that the terminal needs to be cleared next time we're
257// drawing it.

Callers 1

subscribersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected