MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / failure

Function failure

common/src/util/error.ts:100–105  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

98}
99
100export function failure(error: unknown): Failure<ErrorObject> {
101 return {
102 success: false,
103 error: getErrorObject(error),
104 }
105}
106
107/**
108 * Create a successful prompt result.

Callers 2

Calls 1

getErrorObjectFunction · 0.85

Tested by

no test coverage detected