MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / SetError

Method SetError

internal/tui/worktree_spinner.go:106–113  ·  view source on GitHub ↗

SetError sets an error on the current step.

(err string)

Source from the content-addressed store, hash-verified

104
105// SetError sets an error on the current step.
106func (w *WorktreeSpinner) SetError(err string) {
107 w.errMsg = err
108 idx := int(w.currentStep)
109 if idx < len(w.steps) {
110 w.steps[idx].errMsg = err
111 w.steps[idx].active = false
112 }
113}
114
115// HasError returns true if there is an error.
116func (w *WorktreeSpinner) HasError() bool {

Callers 3

Calls

no outgoing calls

Tested by 2