MCPcopy Index your code
hub / github.com/anomalyco/opencode / fail

Function fail

packages/opencode/src/cli/cmd/run/tool.ts:202–209  ·  view source on GitHub ↗
(ctx: ToolFrame)

Source from the content-addressed store, hash-verified

200}
201
202function fail(ctx: ToolFrame): string {
203 const error = toolError(ctx)
204 if (error) {
205 return `✖ ${ctx.name} failed: ${error}`
206 }
207
208 return `✖ ${ctx.name} failed`
209}
210
211function toolError(ctx: ToolFrame): string {
212 if (ctx.error) {

Callers 5

fallbackFinalFunction · 0.70
scrollPatchFinalFunction · 0.70
scrollTaskFinalFunction · 0.70
scrollGlobFinalFunction · 0.70
createLayerFunction · 0.70

Calls 1

toolErrorFunction · 0.70

Tested by

no test coverage detected