MCPcopy
hub / github.com/virattt/dexter / setError

Method setError

src/components/tool-event.ts:128–135  ·  view source on GitHub ↗
(error: string)

Source from the content-addressed store, hash-verified

126 }
127
128 setError(error: string) {
129 this.clearDetail();
130 // Solid red circle
131 this.header.setText(`${theme.error(CIRCLE)} ${this.toolTitle}`);
132 const detail = new Text(`${theme.muted('⎿ ')}${theme.error(`Error: ${truncateAtWord(error, 80)}`)}`, 0, 0);
133 this.completedDetails.push(detail);
134 this.addChild(detail);
135 }
136
137 setLimitWarning(warning?: string) {
138 this.clearDetail();

Callers

nothing calls this directly

Calls 4

clearDetailMethod · 0.95
setTextMethod · 0.80
truncateAtWordFunction · 0.70
errorMethod · 0.45

Tested by

no test coverage detected